Class OSPFNeighbor

java.lang.Object
org.netxms.client.topology.OSPFNeighbor

public class OSPFNeighbor extends Object
OSPF neighbor information
  • Constructor Details

    • OSPFNeighbor

      public OSPFNeighbor(NXCPMessage msg, long baseId)
      Create neighbor object from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
  • Method Details

    • getRouterId

      public InetAddress getRouterId()
      Get OSPF router ID.
      Returns:
      OSPF router ID
    • getIpAddress

      public InetAddress getIpAddress()
      Get IP address of this OSPF neighbor.
      Returns:
      IP address of this OSPF neighbor
    • getNodeId

      public long getNodeId()
      Get node ID of this OSPF neighbor. Will return 0 if node is not known.
      Returns:
      node ID of this OSPF neighbor or 0
    • isVirtual

      public boolean isVirtual()
      Check if this neighbor is a virtual one.
      Returns:
      true if this neighbor is virtual
    • getInterfaceIndex

      public int getInterfaceIndex()
      Get interface index of local interface where this neighbor is connected. Will return 0 for virtual neighbors.
      Returns:
      interface index of local interface where this neighbor is connected or 0
    • getInterfaceId

      public long getInterfaceId()
      Get ID of local interface object where this neighbor is connected. Will return 0 for virtual neighbors.
      Returns:
      ID of local interface object where this neighbor is connected or 0
    • getAreaId

      public InetAddress getAreaId()
      Get transit area ID for virtual neighbor. Will return null for non-virtual neighbors.
      Returns:
      area ID for virtual neighbor
    • getState

      public OSPFNeighborState getState()
      Get neighbor state.
      Returns:
      neighbor state