Developer

last person joined: 2 days ago 

Expand all | Collapse all

Rest Api - "is_port_enabled" variable from "/ports" URI Problem

  • 1.  Rest Api - "is_port_enabled" variable from "/ports" URI Problem

    Posted Feb 14, 2020 06:40 AM

    Hi,

    I need the help of an aruba Rest Api dev.

    Could you tell me if the value stored in "is_port_enabled" when you call the REST URI "/ports" should indicate the administrative state (enabled/disabled) of a port even if it's a manual "change" or an auto "change" (BPDU protection for example) ?

    In my test, it only get the manual change.

     

    The web console display and the "show interfaces brief" command are fine.

     

    I'm using stacked 2930F (x3) with firmware version WC.16.10.0002.

     

    Thanks.



  • 2.  RE: Rest Api - "is_port_enabled" variable from "/ports" URI Problem

    Posted Feb 24, 2020 03:41 PM

    Hi,

     

    According to one of our REST API developers:

     

    Yes.  You are correct “is_port_enabled”  always reflects the administrative change(interface enable/disable) only.

    By default “is_port_enabled”  is ‘true’ for all the ports in the system.

     

    Thanks,

    Derek



  • 3.  RE: Rest Api - "is_port_enabled" variable from "/ports" URI Problem

    Posted Feb 25, 2020 01:59 AM

    Thank you for the answer.

     

    So is there a URI that get the port state when it is desactivated due to security blocking (BPDU protection for example) ?
    If not, could devs add a "is_port_blocked" variable to the "/ports" URI ?



  • 4.  RE: Rest Api - "is_port_enabled" variable from "/ports" URI Problem

    Posted Feb 25, 2020 03:53 AM

    it will be better it is possible to get spanning port status... (Blocked, Forwarding, listen...) i think