Configuring L2PT for CDP
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "l2ptL2protocol": { "children": [ { "l2ptIf": { "attributes": { "id": "eth1/2" }, "children": [ { "l2ptTunnel": { "attributes": { "cdp": "yes" } } } ] } } ] } }, { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2", "layer": "Layer2", "userCfgdFlags": "admin_layer" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <l2pt-items> <if-items> <If-list> <id>eth1/2</id> <tunnel-items> <cdp>true</cdp> </tunnel-items> </If-list> </if-items> </l2pt-items> <intf-items> <phys-items> <PhysIf-list> <id>eth1/2</id> <layer>Layer2</layer> <userCfgdFlags>admin_layer</userCfgdFlags> </PhysIf-list> </phys-items> </intf-items> </System>