Added a route to the API that will get vlans for a given device #300

Merged
merged 6 commits into from Oct 7, 2014

Projects

None yet

2 participants

@laf
Member
laf commented Oct 1, 2014

/api/v0/vlans/:hostname will list vlans for a device:

{
"status": "ok",
"count": 2,
"vlans": [
{
"vlan_vlan": "1",
"vlan_domain": "1",
"vlan_name": "Testing VLAN",
"vlan_type": "ethertype",
"vlan_mtu": "1500"
},
{
"vlan_vlan": "2",
"vlan_domain": "1",
"vlan_name": "Work VLAN",
"vlan_type": "ethertype",
"vlan_mtu": "1500"
}
]
}

@paulgear paulgear merged commit 5887009 into librenms:master Oct 7, 2014

1 check passed

ci/scrutinizer Scrutinizer: 4 new issues
Details
@laf laf deleted the unknown repository branch Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment