Configuring a VLAN Addition to a PVLAN List
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "pvlanPrivateVlan": { "children": [ { "pvlanIf": { "attributes": { "if": "eth1/2" }, "children": [ { "pvlanAccess": { "children": [ { "pvlanAccessPromiscuous": { "attributes": { "primaryVlan": "vlan-796", "secondaryVlans": "3461" } } } ] } } ] } } ] } }, { "interfaceEntity": { "children": [ { "l1PhysIf": { "attributes": { "id": "eth1/2", "layer": "Layer2", "userCfgdFlags": "admin_layer,admin_state" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <pvlan-items> <if-items> <If-list> <if>eth1/2</if> <access-items> <promiscuous-items> <primaryVlan>vlan-796</primaryVlan> <secondaryVlans>3461</secondaryVlans> </promiscuous-items> </access-items> </If-list> </if-items> </pvlan-items> <intf-items> <phys-items> <PhysIf-list> <id>eth1/2</id> <layer>Layer2</layer> <userCfgdFlags>admin_layer,admin_state</userCfgdFlags> </PhysIf-list> </phys-items> </intf-items> </System>