Configuring an Interface as a Trunk Port and Enabling a List of Allowed VLANs
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/intf.json
{ "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2", "mode": "trunk", "trunkVlans": "15-20" } } } ] } }
Response
{ imdata:[] }
Copy
<System> <intf-items> <phys-items> <PhysIf-list> <id>eth1/2</id> <mode>trunk</mode> <trunkVlans>15-20</trunkVlans> </PhysIf-list> </phys-items> </intf-items> </System>