fib

System Forwarding Information Base (FIB) management

The FIB represents the system forwarding tables. In this way, it is generally the result of the programming of any routing agents in the system including static and dynamic routing protocols.

This module allows for direct maniuplation of the FIB, as well as a means of reacting to the contents of the table as well as perform queries.

namespace eos
class fib_route_iter_t

Private Functions

fib_route_iter_t(fib_route_iter_impl * const)

Friends

friend class fib_route_iter_impl
class fib_fec_iter_t

Private Functions

fib_fec_iter_t(fib_fec_iter_impl * const)

Friends

friend class fib_fec_iter_impl
class fib_handler
#include <fib.h>

This class receives changes route/fec collection.

Public Functions

fib_handler(fib_mgr *)
fib_mgr * get_fib_mgr() const
virtual void on_route_set(fib_route_t const &)

Handler called when a route gets added or updated.

virtual void on_route_del(fib_route_key_t const &)

Handler called when a route gets deleted.

virtual void on_fec_set(fib_fec_t const &)

Handler called when a FEC gets added or updated.

virtual void on_fec_del(fib_fec_key_t const &)

Handler called when a FEC gets deleted.

class fib_mgr
#include <fib.h>

The FIB Manager.

Public Functions

virtual ~fib_mgr()
virtual fib_route_iter_t fib_route_iter() const = 0
virtual fib_fec_iter_t fib_fec_iter() const = 0
virtual bool fib_fec_set(fib_fec_t const &) = 0
virtual void fib_fec_del(fib_fec_key_t const &) = 0
virtual bool fib_fec_exists(fib_fec_key_t const &) = 0
virtual fib_fec_t fib_fec(fib_fec_key_t const &) = 0
virtual bool fib_route_set(fib_route_t const &) = 0
virtual void fib_route_del(fib_route_key_t const &) = 0
virtual bool fib_route_exists(fib_route_key_t const &) = 0
virtual fib_route_t fib_route(fib_route_key_t const &) = 0
virtual mgr_mode_type_t mode_type() = 0

Returns the mode this manager is in. This mode is set during the construction of the manager, i.e.: `sdk.get_fib_mgr(MODE_TYPE_READ_NOTIFYING)`. If MODE_TYPE_READ_ONLY, only the getters and iterators of this manager will function.

Protected Functions

fib_mgr()

Private Members

fib_mgr

Friends

friend class fib_handler

Type definitions in fib

Warning

doxygenfile: Found multiple matches for file “eos/types/fib.h

Table Of Contents

Previous topic

fd

Next topic

hardware_table