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": "po123" }, "children": [ { "pvlanAccess": { "children": [ { "pvlanAccessPromiscuous": { "attributes": { "primaryVlan": "vlan-264", "secondaryVlans": "2352" } } } ] } } ] } } ] } }, { "interfaceEntity": { "children": [ { "pcAggrIf": { "attributes": { "id": "po123", "layer": "Layer2", "userCfgdFlags": "admin_layer" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <pvlan-items> <if-items> <If-list> <if>po123</if> <access-items> <promiscuous-items> <primaryVlan>vlan-264</primaryVlan> <secondaryVlans>2352</secondaryVlans> </promiscuous-items> </access-items> </If-list> </if-items> </pvlan-items> <intf-items> <aggr-items> <AggrIf-list> <id>po123</id> <layer>Layer2</layer> <userCfgdFlags>admin_layer</userCfgdFlags> </AggrIf-list> </aggr-items> </intf-items> </System>