Class AsNumberUtil
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.AsNumberUtil
-
public final class AsNumberUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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 Detail
-
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
-
-