|
xorp
|
Public Member Functions | |
| FibConfigTableSet (FeaDataPlaneManager &fea_data_plane_manager) | |
| Constructor. | |
| virtual | ~FibConfigTableSet () |
| Virtual destructor. | |
| FibConfig & | fibconfig () |
| Get the FibConfig instance. | |
| FeaDataPlaneManager & | fea_data_plane_manager () |
| Get the FeaDataPlaneManager instance. | |
| virtual bool | is_running () const |
| Test whether this instance is running. | |
| virtual int | start (string &error_msg)=0 |
| Start operation. | |
| virtual int | stop (string &error_msg)=0 |
| Stop operation. | |
| virtual int | start_configuration (string &error_msg) |
| Start a configuration interval. | |
| virtual int | end_configuration (string &error_msg) |
| End of configuration interval. | |
| virtual int | set_table4 (const list< Fte4 > &fte_list)=0 |
| Set the IPv4 unicast forwarding table. | |
| virtual int | delete_all_entries4 ()=0 |
| Delete all entries in the IPv4 unicast forwarding table. | |
| virtual int | set_table6 (const list< Fte6 > &fte_list)=0 |
| Set the IPv6 unicast forwarding table. | |
| virtual int | delete_all_entries6 ()=0 |
| Delete all entries in the IPv6 unicast forwarding table. | |
| virtual int | notify_table_id_change (uint32_t new_tbl)=0 |
| Routing table ID that we are interested in might have changed. | |
Protected Member Functions | |
| int | mark_configuration_start (string &error_msg) |
| Mark start of a configuration. | |
| int | mark_configuration_end (string &error_msg) |
| Mark end of a configuration. | |
| bool | in_configuration () const |
Protected Attributes | |
| bool | _is_running |
Private Attributes | |
| FibConfig & | _fibconfig |
| FeaDataPlaneManager & | _fea_data_plane_manager |
| bool | _in_configuration |
| FibConfigTableSet::FibConfigTableSet | ( | FeaDataPlaneManager & | fea_data_plane_manager | ) | [inline] |
Constructor.
| fea_data_plane_manager | the corresponding data plane manager (FeaDataPlaneManager). |
| virtual int FibConfigTableSet::delete_all_entries4 | ( | ) | [pure virtual] |
Delete all entries in the IPv4 unicast forwarding table.
Must be within a configuration interval.
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.
| virtual int FibConfigTableSet::delete_all_entries6 | ( | ) | [pure virtual] |
Delete all entries in the IPv6 unicast forwarding table.
Must be within a configuration interval.
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.
| virtual int FibConfigTableSet::end_configuration | ( | string & | error_msg | ) | [inline, virtual] |
| FeaDataPlaneManager& FibConfigTableSet::fea_data_plane_manager | ( | ) | [inline] |
Get the FeaDataPlaneManager instance.
| FibConfig& FibConfigTableSet::fibconfig | ( | ) | [inline] |
| virtual bool FibConfigTableSet::is_running | ( | ) | const [inline, virtual] |
Test whether this instance is running.
| int FibConfigTableSet::mark_configuration_end | ( | string & | error_msg | ) | [inline, protected] |
Mark end of a configuration.
| error_msg | the error message (if error). |
| int FibConfigTableSet::mark_configuration_start | ( | string & | error_msg | ) | [inline, protected] |
Mark start of a configuration.
| error_msg | the error message (if error). |
| virtual int FibConfigTableSet::notify_table_id_change | ( | uint32_t | new_tbl | ) | [pure virtual] |
Routing table ID that we are interested in might have changed.
Maybe something can filter on this for increased efficiency.
Implemented in FibConfigTableSetDummy, and FibConfigTableSetIPHelper.
| virtual int FibConfigTableSet::set_table4 | ( | const list< Fte4 > & | fte_list | ) | [pure virtual] |
Set the IPv4 unicast forwarding table.
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.
| virtual int FibConfigTableSet::set_table6 | ( | const list< Fte6 > & | fte_list | ) | [pure virtual] |
Set the IPv6 unicast forwarding table.
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.
| virtual int FibConfigTableSet::start | ( | string & | error_msg | ) | [pure virtual] |
Start operation.
| error_msg | the error message (if error). |
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.
| virtual int FibConfigTableSet::start_configuration | ( | string & | error_msg | ) | [inline, virtual] |
Start a configuration interval.
All modifications to must be within a marked "configuration" interval.
This method provides derived classes with a mechanism to perform any actions necessary before forwarding table modifications can be made.
| error_msg | the error message (if error). |
| virtual int FibConfigTableSet::stop | ( | string & | error_msg | ) | [pure virtual] |
Stop operation.
| error_msg | the error message (if error). |
Implemented in FibConfigTableSetDummy, FibConfigTableSetIPHelper, and FibConfigTableSetRtmV2.