API /api/1.0/switchports/: vlans node should return at least the vlan id in addition to the vlan name
CompletedA call to /api/1.0/switchports/ produces for example:
"switchports": [
{
"description": "FastEthernet0/3",
"devices": "",
"macs": "",
"mac_ids": "",
"port": "FastEthernet0/3",
"switch": {
"asset_no": null,
"device_id": 1,
"device_url": "/api/1.0/devices/id/1/",
"name": "nh-lab-switch-01",
"serial_no": "FAB0447Y35M",
"uuid": null
},
"switchport_id": 1,
"type": null,
"vlans": "default"
},
Â
As you can see "vlans" contains only the names of vlans. This is not enough to make a call to a subsequentÂ
GET /api/1.0/vlans/<id>/
of course because I've no <id> to specify.
Can you extend the "vlans" node to provide at least the vlan id in addition to the vlan name?
0
Please sign in to leave a comment.
Comments
0 comments