DX NetOps

 View Only
Expand all | Collapse all

Spectrum REST - IP Address for ModelClass=port, but any ModelType

Jump to Best Answer
  • 1.  Spectrum REST - IP Address for ModelClass=port, but any ModelType

    Posted Feb 19, 2016 09:31 AM

    Is there a general attribute which will return the IP Address of a network port on a device, regardless of what type of port it is?

     

    The problem I am running into is that I am querying the Restful API for many ports at a time, by specifying their Model_Handles, and at the time of the query, I do not know what the Model_Type is, and I am not sure which attribute for I need to request to get the IP Address of the port.

    In some cases, it is "ip_address (0x12dbb)", in others, "legacy_ip_address (0x10e43)", and I've also seen "IP_Address (0xc40253)" for DLCI_Ports (I'm sure there are probably even more).

     

    I would ideally like to only make one call to Spectrum (one round trip), and ask it to give me the IP Addresses of many different types of ports, without adding a <requested-attribute> for every possibility.  Is this possible?

     

    Thanks in advance!



  • 2.  Re: Spectrum REST - IP Address for ModelClass=port, but any ModelType
    Best Answer

    Posted Jun 27, 2017 06:04 AM

    try using Network_Address (0x12d7f)