xorp

DumpIterator< A > Class Template Reference

List of all members.

Public Member Functions

 DumpIterator (const PeerHandler *peer, const list< const PeerTableInfo< A > * > &peers_to_dump)
string str () const
void route_dump (const InternalMessage< A > &rtmsg)
const PeerHandlercurrent_peer () const
const PeerHandlerpeer_to_dump_to () const
bool is_valid () const
bool route_iterator_is_valid () const
bool next_peer ()
const BgpTrie< A >::iterator & route_iterator () const
const RefTrie< A, const
AggregateRoute< A >
>::iterator & 
aggr_iterator () const
void set_route_iterator (typename BgpTrie< A >::iterator &new_iter)
void set_aggr_iterator (typename RefTrie< A, const AggregateRoute< A > >::iterator &new_iter)
bool route_change_is_valid (const PeerHandler *origin_peer, const IPNet< A > &net, uint32_t genid, RouteQueueOp op)
void peering_is_down (const PeerHandler *peer, uint32_t genid)
 A peer which is down but still deleting routes when this peer is brought up.
void peering_went_down (const PeerHandler *peer, uint32_t genid)
 A peer which does down while dumping is taking place.
void peering_down_complete (const PeerHandler *peer, uint32_t genid)
 A peer that is down and has now completed deleting all its routes.
void peering_came_up (const PeerHandler *peer, uint32_t genid)
 A peer that was down came up.
bool waiting_for_deletion_completion () const
bool iterator_got_moved (IPNet< A > new_net) const

Private Attributes

const PeerHandler_peer
list< PeerTableInfo< A > > _peers_to_dump
 The list of peers that remain to be dumped.
list< PeerTableInfo< A >
>::iterator 
_current_peer
PeerTableInfo< A > * _current_peer_debug
bool _route_iterator_is_valid
BgpTrie< A >::iterator _route_iterator
RefTrie< A, const
AggregateRoute< A >
>::iterator 
_aggr_iterator
bool _routes_dumped_on_current_peer
IPNet< A > _last_dumped_net
map< const PeerHandler
*, PeerDumpState< A > * > 
_peers

template<class A>
class DumpIterator< A >


Member Function Documentation

template<class A>
bool DumpIterator< A >::iterator_got_moved ( IPNet< A >  new_net) const
Returns:
true if the iterator got moved since the last delete
template<class A >
void DumpIterator< A >::peering_is_down ( const PeerHandler peer,
uint32_t  genid 
)

A peer which is down but still deleting routes when this peer is brought up.

peering_is_down is called on DumpTable startup to indicate peerings that already had DeletionTables in progress.

template<class A >
bool DumpIterator< A >::waiting_for_deletion_completion ( ) const
Returns:
true while peers we deleting routes.

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