RibIpcHandler (XrlStdRouter& xrl_router, BGPMain& bgp)
| RibIpcHandler |
~RibIpcHandler ()
| ~RibIpcHandler |
bool register_ribname (const string& r)
| register_ribname |
Set the rib's name, allows for having a dummy rib or not having a RIB at all.
int start_packet ()
| start_packet |
Reimplemented from PeerHandler.
int add_route (const SubnetRoute<IPv4> &rt, bool ibgp, Safi safi)
| add_route |
Reimplemented from PeerHandler.
int add_route (const SubnetRoute<IPv6> &rt, bool ibgp, Safi safi)
| add_route |
Reimplemented from PeerHandler.
int replace_route (const SubnetRoute<IPv4> &old_rt, bool old_ibgp,
const SubnetRoute<IPv4> &new_rt, bool new_ibgp,
Safi safi)
| replace_route |
Reimplemented from PeerHandler.
int replace_route (const SubnetRoute<IPv6> &old_rt, bool old_ibgp,
const SubnetRoute<IPv6> &new_rt, bool new_ibgp,
Safi safi)
| replace_route |
Reimplemented from PeerHandler.
int delete_route (const SubnetRoute<IPv4> &rt, bool ibgp, Safi safi)
| delete_route |
Reimplemented from PeerHandler.
int delete_route (const SubnetRoute<IPv6> &rt, bool ibgp, Safi safi)
| delete_route |
Reimplemented from PeerHandler.
void rib_command_done (const XrlError& error, const char *comment)
| rib_command_done |
PeerOutputState push_packet ()
| push_packet |
Reimplemented from PeerHandler.
void set_plumbing (BGPPlumbing *plumbing_unicast,
BGPPlumbing *plumbing_multicast)
| set_plumbing |
bool busy ()
| busy |
Returns: true if routes are being sent to the RIB.
bool originate_route (const OriginType origin,
const ASPath& aspath,
const IPv4Net& nlri,
const IPv4& next_hop,
const bool& unicast,
const bool& multicast,
const PolicyTags& policytags)
| originate_route |
Originate an IPv4 route
Parameters:
origin | of the path information |
nlri | subnet to announce |
next_hop | to forward to |
unicast | if true install in unicast routing table |
multicast | if true install in multicast routing table |
policytags | policy-tags associated with the route |
Returns: true on success
bool originate_route (const OriginType origin,
const ASPath& aspath,
const IPv6Net& nlri,
const IPv6& next_hop,
const bool& unicast,
const bool& multicast,
const PolicyTags& policytags)
| originate_route |
Originate an IPv6 route
Parameters:
origin | of the path information |
nlri | subnet to announce |
next_hop | to forward to |
unicast | if true install in unicast routing table |
multicast | if true install in multicast routing table |
policytags | policy-tags associated with the route |
Returns: true on success
bool withdraw_route (const IPv4Net& nlri,
const bool& unicast,
const bool& multicast)
| withdraw_route |
Withdraw an IPv4 route
Parameters:
nlri | subnet to withdraw |
unicast | if true withdraw from unicast routing table |
multicast | if true withdraw from multicast routing table |
Returns: true on success
bool withdraw_route (const IPv6Net& nlri,
const bool& unicast,
const bool& multicast)
| withdraw_route |
Withdraw an IPv6 route
Returns: true on success
uint32_t get_unique_id ()
| get_unique_id |
[const virtual]
Reimplemented from PeerHandler.
const IPv4& id ()
| id |
[const]
Reimplemented from PeerHandler.
PeerType get_peer_type ()
| get_peer_type |
[const virtual]
Reimplemented from PeerHandler.
bool originate_route_handler ()
| originate_route_handler |
[const virtual]
This is the handler that deals with originating routes.
Returns: true
Reimplemented from PeerHandler.
EventLoop& eventloop ()
| eventloop |
[const virtual]
Returns: the main eventloop
Reimplemented from PeerHandler.