public interface BgpLocalRib
| Modifier and Type | Method and Description |
|---|---|
void |
add(BgpSessionInfo sessionInfo,
BgpLSNlri nlri,
PathAttrNlriDetails details)
Add NLRI to local RIB.
|
void |
add(BgpSessionInfo sessionInfo,
BgpLSNlri nlri,
PathAttrNlriDetails details,
RouteDistinguisher routeDistinguisher)
Update NLRI identifier mapped with route distinguisher if it exists in tree otherwise add NLRI information mapped
to respective route distinguisher.
|
void |
delete(BgpLSNlri nlri)
Removes NLRI identifier if it exists.
|
void |
delete(BgpLSNlri nlri,
RouteDistinguisher routeDistinguisher)
Removes VPN NLRI identifier mapped to route distinguisher if it exists.
|
java.util.Map<BgpLinkLSIdentifier,PathAttrNlriDetailsLocalRib> |
linkTree()
Returns link NLRI tree.
|
java.util.Map<BgpNodeLSIdentifier,PathAttrNlriDetailsLocalRib> |
nodeTree()
Returns node NLRI tree.
|
java.util.Map<BgpPrefixLSIdentifier,PathAttrNlriDetailsLocalRib> |
prefixTree()
Returns prefix NLRI tree.
|
java.util.Map<RouteDistinguisher,java.util.Map<BgpLinkLSIdentifier,PathAttrNlriDetailsLocalRib>> |
vpnLinkTree()
Returns VPN link NLRI tree.
|
java.util.Map<RouteDistinguisher,java.util.Map<BgpNodeLSIdentifier,PathAttrNlriDetailsLocalRib>> |
vpnNodeTree()
Returns VPN node NLRI tree.
|
java.util.Map<RouteDistinguisher,java.util.Map<BgpPrefixLSIdentifier,PathAttrNlriDetailsLocalRib>> |
vpnPrefixTree()
Returns VPN prefix NLRI tree.
|
void add(BgpSessionInfo sessionInfo, BgpLSNlri nlri, PathAttrNlriDetails details) throws BgpParseException
sessionInfo - session infonlri - network layer reach infodetails - path attributes and NLRI informationBgpParseException - while adding NLRI to local ribvoid delete(BgpLSNlri nlri) throws BgpParseException
nlri - infoBgpParseException - while deleting NLRI from local ribvoid add(BgpSessionInfo sessionInfo, BgpLSNlri nlri, PathAttrNlriDetails details, RouteDistinguisher routeDistinguisher) throws BgpParseException
sessionInfo - BGP session infonlri - infodetails - has pathattribute, protocol id and identifierrouteDistinguisher - unique for each VPNBgpParseException - while adding NLRI updationvoid delete(BgpLSNlri nlri, RouteDistinguisher routeDistinguisher) throws BgpParseException
nlri - inforouteDistinguisher - unique for each VPNBgpParseException - while deleting NLRI from local ribjava.util.Map<BgpNodeLSIdentifier,PathAttrNlriDetailsLocalRib> nodeTree()
java.util.Map<BgpLinkLSIdentifier,PathAttrNlriDetailsLocalRib> linkTree()
java.util.Map<BgpPrefixLSIdentifier,PathAttrNlriDetailsLocalRib> prefixTree()
java.util.Map<RouteDistinguisher,java.util.Map<BgpNodeLSIdentifier,PathAttrNlriDetailsLocalRib>> vpnNodeTree()
java.util.Map<RouteDistinguisher,java.util.Map<BgpLinkLSIdentifier,PathAttrNlriDetailsLocalRib>> vpnLinkTree()
java.util.Map<RouteDistinguisher,java.util.Map<BgpPrefixLSIdentifier,PathAttrNlriDetailsLocalRib>> vpnPrefixTree()