Class AsNumberUtil
java.lang.Object
org.opendaylight.protocol.bgp.parser.AsNumberUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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.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.
-
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 containernid
- as node identifier- Returns:
- as number
-