Update Tagged/Untagged LAG under VLAN

Configures, modifies and retrieves the VLAN LAG ports configurations.

URI: openconfig-interfaces:interfaces/interface/interface-name/ethernet/switched-vlan

The URI to configure data for tagged and untagged LAG of VLAN is:

openconfig-interfaces:interfaces/interface/interface-name/aggregation/switched-vlan

PATCH method for tagged and untagged ports

URI: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan

Request body: {
       "openconfig-vlan:switched-vlan": {
            "config": {
                "access-vlan": 41,
                "trunk-vlans": [
                    115
                ]
            }
        }
}

Response Body: None

GET method

URI: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan
Request body: None

Response Body: {
    "openconfig-vlan:switched-vlan": {
        "config": {
            "access-vlan": 41,
            "trunk-vlans": [
                115
            ]
        },
        "state": {}
    }
}

PATCH method for tagged ports

URL: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan
Request body: {
        "openconfig-vlan:switched-vlan": {
            "config": {
                "trunk-vlans" : [
                    111,
                    114
                ]
            }
        }
    }
Response body: None

PATCH method for untagged ports

URL: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan
Request body:      
{       
        "openconfig-vlan:switched-vlan": {
            "config": {
                "access-vlan": 74
            }
        }
}
Response body: None

DELETE method

URL: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan/config/trunk-vlans/100
URI: https://10.177.114.166/restconf/data/openconfig-interfaces:interfaces/interface/lag 2/aggregation/switched-vlan/config/access-vlan
Request body: None
Response body: None