|
xorp
|
Public Member Functions | |
| IfConfigGet (FeaDataPlaneManager &fea_data_plane_manager) | |
| Constructor. | |
| virtual | ~IfConfigGet () |
| Virtual destructor. | |
| IfConfig & | ifconfig () |
| Get the IfConfig 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 | pull_config (const IfTree *local_config, IfTree &iftree)=0 |
| Pull the network interface information from the underlying system. | |
| virtual bool | can_pull_one () |
| Child classes that *can* do this should over-ride. | |
| virtual int | pull_config_one (IfTree &iftree, const char *ifname, int if_index) |
| If_index can be -1 if unknown: We will try to resolve it from ifname. | |
Protected Attributes | |
| bool | _is_running |
Private Attributes | |
| IfConfig & | _ifconfig |
| FeaDataPlaneManager & | _fea_data_plane_manager |
| IfConfigGet::IfConfigGet | ( | FeaDataPlaneManager & | fea_data_plane_manager | ) | [inline] |
Constructor.
| fea_data_plane_manager | the corresponding data plane manager (FeaDataPlaneManager). |
| FeaDataPlaneManager& IfConfigGet::fea_data_plane_manager | ( | ) | [inline] |
Get the FeaDataPlaneManager instance.
| IfConfig& IfConfigGet::ifconfig | ( | ) | [inline] |
| virtual bool IfConfigGet::is_running | ( | ) | const [inline, virtual] |
Test whether this instance is running.
| virtual int IfConfigGet::pull_config | ( | const IfTree * | local_config, |
| IfTree & | iftree | ||
| ) | [pure virtual] |
Pull the network interface information from the underlying system.
| local_config | If not NULL, optimized ifconfig-get subclasses may pull interface config for only interfaces found in local_config. Set to NULl to pull all information from the kernel. |
| iftree | the IfTree storage to store the pulled information. |
Implemented in IfConfigGetDummy, IfConfigGetGetifaddrs, IfConfigGetIPHelper, and IfConfigGetSysctl.
| virtual int IfConfigGet::pull_config_one | ( | IfTree & | iftree, |
| const char * | ifname, | ||
| int | if_index | ||
| ) | [inline, virtual] |
If_index can be -1 if unknown: We will try to resolve it from ifname.
Child classes that can do this should implement the method.
| virtual int IfConfigGet::start | ( | string & | error_msg | ) | [pure virtual] |
Start operation.
| error_msg | the error message (if error). |
Implemented in IfConfigGetDummy, IfConfigGetGetifaddrs, IfConfigGetIPHelper, and IfConfigGetSysctl.
| virtual int IfConfigGet::stop | ( | string & | error_msg | ) | [pure virtual] |
Stop operation.
| error_msg | the error message (if error). |
Implemented in IfConfigGetDummy, IfConfigGetGetifaddrs, IfConfigGetIPHelper, and IfConfigGetSysctl.