Software Defined Networking (SDN)

Reply
New Contributor

ArubaOS REST API /vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}

Hello,

 

I'm trying to add a VLAN to a port with an API call. I can retrieve and delete a VLAN from a port (GET .../vlans-ports and DELETE .../vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}).

 

Accourding to the documentation a PUT .../vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id} should add the VLAN to the specified port and return VlanPort. Instead the call returns a session id:

{
"uri": "/rest/v1/login-sessions","cookie":
"sessionId=09CG1bRuT5hkCPzI97mmDjpn4uLtsmgkBsAaWUr9h7GxlkbsiASak1PEyj7Ov3n"
}

 

Has anyone succeeded in adding a VLAN to a 802.1q port?

 

Link to the documentation:https://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjX1Neh0b3VAhWLaVAKHWN-BRAQFggmMAA&url=http%3A%2F%2Fh20566.www2.hpe.com%2Fhpsc%2Fdoc%2Fpublic%2Fdisplay%3Fsp4ts.oid%3D7074783%26docLocale%3Den_US%26docId%3Demr_na...

 

Aruba Employee

Re: ArubaOS REST API /vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}

Hi Frans,

This question might be better-suited to the "Campus Switching & Routing" category, since it's essentially a question about the functionality of the ArubaOS REST API on our campus switches:

http://community.arubanetworks.com/t5/Campus-Switching-and-Routing/bd-p/CampusSwitching

 

I'm not sure that many experts in the ArubaOS REST API frequent this SDN forum, since it typically deals with questions about our VAN SDN controller and other software-oriented solutions which interact with (but don't run on) the ArubaOS campus switches.

Shaun

New Contributor

Re: ArubaOS REST API /vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}

Hi Shaun,

 

Thanks for the tip, I'll change the catagory.

 

 

Frans

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: