SSF.OS.BGP4
Class AdjRIBOut

java.lang.Object
  |
  +--SSF.OS.BGP4.Util.RadixTree
        |
        +--SSF.OS.BGP4.RIBElement
              |
              +--SSF.OS.BGP4.AdjRIBOut

public class AdjRIBOut
extends RIBElement

One element of the Adj-RIBs-Out section of BGP's Routing Information Base.


Field Summary
 PeerEntry peer
          The peer with whom this RIB element is associated, if any.
 
Fields inherited from class SSF.OS.BGP4.RIBElement
bgp, rtes, version
 
Method Summary
 RouteInfo add(RouteInfo info)
          Adds route information.
 RouteInfo remove(IPaddress ipa)
          Removes the route information corresponding to the given route destination.
 RouteInfo replace(RouteInfo info)
          Adds route information, replacing any pre-existing information with the same NLRI.
 
Methods inherited from class SSF.OS.BGP4.RIBElement
approxBytes, bytes2str, find, get_all_routes, get_dests, get_less_specifics, get_more_specifics, get_routes, hdr2str, is_less_specific, remove_all, toBytes, toString, toString
 
Methods inherited from class SSF.OS.BGP4.Util.RadixTree
add, find, get_ancestors, get_descendants, has_descendants, oldest_ancestor, print, prune, remove, replace, root, youngest_ancestor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer

public PeerEntry peer
The peer with whom this RIB element is associated, if any.

Method Detail

add

public RouteInfo add(RouteInfo info)
Adds route information. If route information with the same NLRI already exists, then the add fails and the pre-existing information is returned.

Overrides:
add in class RIBElement
Parameters:
info - The route information to add.
Returns:
pre-existing route information, if any

replace

public RouteInfo replace(RouteInfo info)
Adds route information, replacing any pre-existing information with the same NLRI.

Overrides:
replace in class RIBElement
Parameters:
info - The route information to add.
Returns:
the pre-existing route information, or null if there was none

remove

public RouteInfo remove(IPaddress ipa)
Removes the route information corresponding to the given route destination.

Overrides:
remove in class RIBElement
Parameters:
ipa - The destination of the route information to remove.
Returns:
the removed route information