Configuring Preemption Mode
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "flexlinkFlexlink": { "children": [ { "flexlinkInterface": { "attributes": { "backupIntf": "eth1/2", "id": "eth1/1", "preemptionMode": "off" } } } ] } }, { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/1", "layer": "Layer2", "userCfgdFlags": "admin_layer" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <flexlink-items> <if-items> <Interface-list> <id>eth1/1</id> <backupIntf>eth1/2</backupIntf> <preemptionMode>off</preemptionMode> </Interface-list> </if-items> </flexlink-items> <intf-items> <phys-items> <PhysIf-list> <id>eth1/1</id> <layer>Layer2</layer> <userCfgdFlags>admin_layer</userCfgdFlags> </PhysIf-list> </phys-items> </intf-items> </System>