LLDP-MED

Configures, modifies, and retrieves LLDP-MED configuration. The URI to configure data for LLDP-MED is:

/lldp/med 

To add LLDP-MED configuration using POST method:

/lldp   

To modify LLDP-MED configuration using PATCH method:

/lldp/med  

To delete LLDP-MED configuration in the system:

/lldp/med 

Supported HTTP Operations

GET method

URL: https://10.177.125.153/restconf/data/lldp/med
Request body: None
Response body: 
	{
   "icx-openconfig-lldp-aug:med" : {
      "network-policy" : [
         {
            "traffic" : "priority-tagged",
            "priority-tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/7",
                     "ethernet 1/1/9"
                  ],
                  "dscp" : 10
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/11"
                  ],
                  "dscp" : 20
               }
            ],
            "application" : "voice"
         },
         {
            "untagged" : [
               {
                  "ports" : [
                     "ethernet 1/1/1",
                     "ethernet 1/1/3"
                  ],
                  "dscp" : 10
               },
               {
                  "ports" : [
                     "ethernet 1/1/5"
                  ],
                  "dscp" : 20
               }
            ],
            "traffic" : "untagged",
            "application" : "voice"
         },
         {
            "traffic" : "tagged",
            "tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/13",
                     "ethernet 1/1/15"
                  ],
                  "dscp" : 10,
                  "vlan" : 100
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/17"
                  ],
                  "dscp" : 20,
                  "vlan" : 200
               }
            ],
            "application" : "voice"
         },
         {
            "traffic" : "priority-tagged",
            "priority-tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/8",
                     "ethernet 1/1/10"
                  ],
                  "dscp" : 10
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/12"
                  ],
                  "dscp" : 20
               }
            ],
            "application" : "video-signaling"
         },
         {
            "untagged" : [
               {
                  "ports" : [
                     "ethernet 1/1/2",
                     "ethernet 1/1/4"
                  ],
                  "dscp" : 10
               },
               {
                  "ports" : [
                     "ethernet 1/1/6"
                  ],
                  "dscp" : 20
               }
            ],
            "traffic" : "untagged",
            "application" : "video-signaling"
         },
         {
            "traffic" : "tagged",
            "tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/14",
                     "ethernet 1/1/16"
                  ],
                  "dscp" : 10,
                  "vlan" : 300
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/18"
                  ],
                  "dscp" : 20,
                  "vlan" : 400
               }
            ],
            "application" : "video-signaling"
         }
      ]
   }
}

PUT method

URL: https://10.177.125.153/restconf/data/lldp/med
Request body:
        {
   "icx-openconfig-lldp-aug:med" : {
      "network-policy" : [
         {
            "traffic" : "priority-tagged",
            "priority-tagged" : [
               {
                  "priority" : 7,
                  "ports" : [
                     "ethernet 1/1/31",
                     "ethernet 1/1/33"
                  ],
                  "dscp" : 25
               },
               {
                  "priority" : 7,
                  "ports" : [
                     "ethernet 1/1/35"
                  ],
                  "dscp" : 50
               }
            ],
            "application" : "video-signaling"
         }
      ]
   }
}
Response body: None    

PATCH method

URL: https://10.177.125.153/restconf/data/lldp/med  
Request body:
{
   "icx-openconfig-lldp-aug:med" : {
      "network-policy" : [
         {
            "traffic" : "priority-tagged",
            "priority-tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/7",
                     "ethernet 1/1/9",
                     "ethernet 1/1/23"
                  ],
                  "dscp" : 10
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/11"
                  ],
                  "dscp" : 20
               },
               {
                  "priority" : 2,
                  "ports" : [
                     "ethernet 1/1/25"
                  ],
                  "dscp" : 30
               }
            ],
            "application" : "voice"
         },
         {
            "untagged" : [
               {
                  "ports" : [
                     "ethernet 1/1/1",
                     "ethernet 1/1/3",
                     "ethernet 1/1/19"
                  ],
                  "dscp" : 10
               },
               {
                  "ports" : [
                     "ethernet 1/1/5"
                  ],
                  "dscp" : 20
               },
               {
                  "ports" : [
                     "ethernet 1/1/21"
                  ],
                  "dscp" : 30
               }
            ],
            "traffic" : "untagged",
            "application" : "voice"
         },
         {
            "traffic" : "tagged",
            "tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/13",
                     "ethernet 1/1/15",
                     "ethernet 1/1/27"
                  ],
                  "dscp" : 10,
                  "vlan" : 100
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/17"
                  ],
                  "dscp" : 20,
                  "vlan" : 200
               },
               {
                  "priority" : 2,
                  "ports" : [
                     "ethernet 1/1/29"
                  ],
                  "dscp" : 30,
                  "vlan" : 300
               }
            ],
            "application" : "voice"
         },
         {
            "traffic" : "priority-tagged",
            "priority-tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/8",
                     "ethernet 1/1/10",
                     "ethernet 1/1/24"
                  ],
                  "dscp" : 10
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/12"
                  ],
                  "dscp" : 20
               },
               {
                  "priority" : 2,
                  "ports" : [
                     "ethernet 1/1/26"
                  ],
                  "dscp" : 30
               }
            ],
            "application" : "video-signaling"
         },
         {
            "untagged" : [
               {
                  "ports" : [
                     "ethernet 1/1/2",
                     "ethernet 1/1/4",
                     "ethernet 1/1/20"
                  ],
                  "dscp" : 10
               },
               {
                  "ports" : [
                     "ethernet 1/1/6"
                  ],
                  "dscp" : 20
               },
               {
                  "ports" : [
                     "ethernet 1/1/22"
                  ],
                  "dscp" : 30
               }
            ],
            "traffic" : "untagged",
            "application" : "video-signaling"
         },
         {
            "traffic" : "tagged",
            "tagged" : [
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/28"
                  ],
                  "dscp" : 10,
                  "vlan" : 100
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/14",
                     "ethernet 1/1/16"
                  ],
                  "dscp" : 10,
                  "vlan" : 300
               },
               {
                  "priority" : 2,
                  "ports" : [
                     "ethernet 1/1/30"
                  ],
                  "dscp" : 30,
                  "vlan" : 300
               },
               {
                  "priority" : 1,
                  "ports" : [
                     "ethernet 1/1/18"
                  ],
                  "dscp" : 20,
                  "vlan" : 400
               }
            ],
            "application" : "video-signaling"
         }
      ]
   }
}
Response body: None    

DELETE

URL: https://10.177.125.153/restconf/data/lldp/med
Request body: None    
Response body: None