xorp

BGPPlumbing Class Reference

Inheritance diagram for BGPPlumbing:
PlumbingTest

List of all members.

Public Member Functions

 BGPPlumbing (const Safi safi, RibIpcHandler *rib_handler, AggregationHandler *aggr_handler, NextHopResolver< IPv4 > &, PolicyFilters &, BGPMain &bgp)
int add_peering (PeerHandler *peer_handler)
int stop_peering (PeerHandler *peer_handler)
int peering_went_down (PeerHandler *peer_handler)
int peering_came_up (PeerHandler *peer_handler)
int delete_peering (PeerHandler *peer_handler)
void flush (PeerHandler *peer_handler)
int add_route (const IPv4Net &net, FPAList4Ref &pa_list, const PolicyTags &policytags, PeerHandler *peer_handler)
int delete_route (InternalMessage< IPv4 > &rtmsg, PeerHandler *peer_handler)
int delete_route (const IPNet< IPv4 > &net, PeerHandler *peer_handler)
template<class A >
void push (PeerHandler *peer_handler)
void output_no_longer_busy (PeerHandler *peer_handler)
const SubnetRoute< IPv4 > * lookup_route (const IPNet< IPv4 > &net) const
uint32_t get_prefix_count (const PeerHandler *peer_handler)
RibIpcHandlerrib_handler () const
AggregationHandleraggr_handler () const
BGPPlumbingAF< IPv4 > & plumbing_ipv4 ()
template<typename A >
uint32_t create_route_table_reader (const IPNet< A > &prefix)
bool read_next_route (uint32_t token, const SubnetRoute< IPv4 > *&route, IPv4 &peer_id)
bool status (string &reason) const
 Get the status of the Plumbing.
Safi safi () const
BGPMainmain () const
void push_routes ()
 Push routes through policy filters for re-filtering.
PolicyFilterspolicy_filters ()
template<>
uint32_t create_route_table_reader (const IPNet< IPv4 > &prefix)

Private Attributes

BGPMain_bgp
 IPv6 stuff.
RibIpcHandler_rib_handler
AggregationHandler_aggr_handler
NextHopResolver< IPv4 > & _next_hop_resolver_ipv4
const Safi _safi
PolicyFilters_policy_filters
BGPPlumbingAF< IPv4_plumbing_ipv4

Member Function Documentation

uint32_t BGPPlumbing::get_prefix_count ( const PeerHandler peer_handler)
Returns:
the number of prefixes in the RIB-IN.
BGPMain& BGPPlumbing::main ( ) const [inline]
Returns:
Reference to the main bgp class.
Safi BGPPlumbing::safi ( ) const [inline]
Returns:
Safi of this plumb.
bool BGPPlumbing::status ( string &  reason) const

Get the status of the Plumbing.

Parameters:
reasonthe human-readable reason for any failure
Returns:
false if Plumbing has suffered a fatal error, true otherwise

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations