Creating Port Channels
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/1" } } }, { "pcAggrIf": { "attributes": { "id": "po10", "isExplicit": "yes", "pcMode": "active" }, "children": [ { "pcRsMbrIfs": { "attributes": { "tDn": "sys/intf/phys-[eth1/1]" } } } ] } }, { "pcAggrIf": { "attributes": { "accessVlan": "vlan-20", "adminSt": "down", "bw": "20000", "delay": "20", "descr": "test port-channel", "duplex": "full", "id": "po1", "layer": "Layer2", "linkLog": "enable", "minLinks": "5", "mode": "trunk", "mtu": "1750", "snmpTrapSt": "disable", "speed": "40G", "trunkLog": "enable", "trunkVlans": "2-20", "userCfgdFlags": "admin_layer,admin_mtu,admin_state" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<intf-items> <phys-items> <PhysIf-list> <id>eth1/1</id> </PhysIf-list> </phys-items> <aggr-items> <AggrIf-list> <id>po10</id> <isExplicit>true</isExplicit> <pcMode>active</pcMode> <rsmbrIfs-items> <RsMbrIfs-list> <tDn>/System/intf-items/phys-items/PhysIf-list[id='eth1/1']</tDn> </RsMbrIfs-list> </rsmbrIfs-items> </AggrIf-list> <AggrIf-list> <id>po1</id> <accessVlan>vlan-20</accessVlan> <adminSt>down</adminSt> <bw>20000</bw> <delay>20</delay> <descr>test port-channel</descr> <duplex>full</duplex> <layer>Layer2</layer> <linkLog>enable</linkLog> <minLinks>5</minLinks> <mode>trunk</mode> <mtu>1750</mtu> <snmpTrapSt>disable</snmpTrapSt> <speed>40G</speed> <trunkLog>enable</trunkLog> <trunkVlans>2-20</trunkVlans> <userCfgdFlags>admin_layer,admin_mtu,admin_state</userCfgdFlags> </AggrIf-list> </aggr-items> </intf-items>