Configuring IP over MPLS
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2" } } } ] } }, { "mplsldpLDP": { "attributes": { "adminSt": "enabled" }, "children": [ { "mplsldpIf": { "attributes": { "id": "eth1/2", "mplsIp": "yes" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <intf-items> <phys-items> <PhysIf-list> <id>eth1/2</id> </PhysIf-list> </phys-items> </intf-items> <ldp-items> <adminSt>enabled</adminSt> <if-items> <If-list> <id>eth1/2</id> <mplsIp>true</mplsIp> </If-list> </if-items> </ldp-items> </System>