The configuration shown in the programmable switch example doesn't work.
I needed to add the vid attribute to the netjson, eg:
{
"switch": [
{
"name": "switch0",
"reset": true,
"vlan": [
{
"device": "switch0",
"vlan": 4,
"ports": "4t 6t",
"vid": "170"
}
],
"enable_vlan": true
}
]
}
The configuration shown in the programmable switch example doesn't work.
I needed to add the
vidattribute to the netjson, eg:{ "switch": [ { "name": "switch0", "reset": true, "vlan": [ { "device": "switch0", "vlan": 4, "ports": "4t 6t", "vid": "170" } ], "enable_vlan": true } ] }