Class AsNumberUtil

java.lang.Object
org.opendaylight.protocol.bgp.parser.AsNumberUtil

public final class AsNumberUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    Looks for As4Byte Capability in capabilities and extracts AS number.
    static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    extractAS(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode dtc, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier nid)
    Extract AS from Container Node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • advertizedAsNumber

      public static @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber advertizedAsNumber(Open open)
      Looks for As4Byte Capability in capabilities and extracts AS number.
      Parameters:
      open - remote BGP open message
      Returns:
      AsNumber
    • extractAS

      public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber extractAS(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode dtc, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier nid)
      Extract AS from Container Node.
      Parameters:
      dtc - route container
      nid - as node identifier
      Returns:
      as number