|
xorp
|
Public Member Functions | |
| IfConfigSetDummy (FeaDataPlaneManager &fea_data_plane_manager) | |
| Constructor. | |
| virtual | ~IfConfigSetDummy () |
| Virtual destructor. | |
| virtual int | start (string &error_msg) |
| Start operation. | |
| virtual int | stop (string &error_msg) |
| Stop operation. | |
| const IfTree & | iftree () const |
| Get a reference to the IfTree instance. | |
| virtual int | push_config (const IfTree &iftree) |
| Push the network interface configuration into the underlying system. | |
Private Member Functions | |
| virtual bool | is_discard_emulated (const IfTreeInterface &i) const |
| Determine if the interface's underlying provider implements discard semantics natively, or if they are emulated through other means. | |
| virtual bool | is_unreachable_emulated (const IfTreeInterface &i) const |
| Determine if the interface's underlying provider implements unreachable semantics natively, or if they are emulated through other means. | |
| virtual int | config_begin (string &error_msg) |
| Start the configuration. | |
| virtual int | config_end (string &error_msg) |
| Complete the configuration. | |
| virtual int | config_interface_begin (const IfTreeInterface *pulled_ifp, IfTreeInterface &config_iface, string &error_msg) |
| Begin the interface configuration. | |
| virtual int | config_interface_end (const IfTreeInterface *pulled_ifp, const IfTreeInterface &config_iface, string &error_msg) |
| End the interface configuration. | |
| virtual int | config_vif_begin (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, string &error_msg) |
| Begin the vif configuration. | |
| virtual int | config_vif_end (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, string &error_msg) |
| End the vif configuration. | |
| virtual int | config_add_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr4 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr4 &config_addr, string &error_msg) |
| Add IPv4 address information. | |
| virtual int | config_delete_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr4 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr4 &config_addr, string &error_msg) |
| Delete IPv4 address information. | |
| virtual int | config_add_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr6 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr6 &config_addr, string &error_msg) |
| Add IPv6 address information. | |
| virtual int | config_delete_address (const IfTreeInterface *pulled_ifp, const IfTreeVif *pulled_vifp, const IfTreeAddr6 *pulled_addrp, const IfTreeInterface &config_iface, const IfTreeVif &config_vif, const IfTreeAddr6 &config_addr, string &error_msg) |
| Delete IPv6 address information. | |
Private Attributes | |
| IfTree | _iftree |
| IfConfigSetDummy::IfConfigSetDummy | ( | FeaDataPlaneManager & | fea_data_plane_manager | ) |
Constructor.
| fea_data_plane_manager | the corresponding data plane manager (FeaDataPlaneManager). |
| int IfConfigSetDummy::config_add_address | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeAddr4 * | pulled_addrp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| const IfTreeAddr4 & | config_addr, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Add IPv4 address information.
If an entry for the same address already exists, is is overwritten with the new information.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| pulled_addrp | pointer to the address information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| config_addr | reference to the address with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_add_address | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeAddr6 * | pulled_addrp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| const IfTreeAddr6 & | config_addr, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Add IPv6 address information.
If an entry for the same address already exists, is is overwritten with the new information.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| pulled_addrp | pointer to the address information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| config_addr | reference to the address with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_begin | ( | string & | error_msg | ) | [private, virtual] |
Start the configuration.
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_delete_address | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeAddr6 * | pulled_addrp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| const IfTreeAddr6 & | config_addr, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Delete IPv6 address information.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| pulled_addrp | pointer to the address information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| config_addr | reference to the address with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_delete_address | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeAddr4 * | pulled_addrp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| const IfTreeAddr4 & | config_addr, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Delete IPv4 address information.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| pulled_addrp | pointer to the address information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| config_addr | reference to the address with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_end | ( | string & | error_msg | ) | [private, virtual] |
Complete the configuration.
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_interface_begin | ( | const IfTreeInterface * | pulled_ifp, |
| IfTreeInterface & | config_iface, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Begin the interface configuration.
| pulled_ifp | pointer to the interface information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_interface_end | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeInterface & | config_iface, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
End the interface configuration.
| pulled_ifp | pointer to the interface information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_vif_begin | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
Begin the vif configuration.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::config_vif_end | ( | const IfTreeInterface * | pulled_ifp, |
| const IfTreeVif * | pulled_vifp, | ||
| const IfTreeInterface & | config_iface, | ||
| const IfTreeVif & | config_vif, | ||
| string & | error_msg | ||
| ) | [private, virtual] |
End the vif configuration.
| pulled_ifp | pointer to the interface information pulled from the system. |
| pulled_vifp | pointer to the vif information pulled from the system. |
| config_iface | reference to the interface with the information to configure. |
| config_vif | reference to the vif with the information to configure. |
| error_msg | the error message (if error). |
Implements IfConfigSet.
| const IfTree& IfConfigSetDummy::iftree | ( | ) | const [inline] |
| bool IfConfigSetDummy::is_discard_emulated | ( | const IfTreeInterface & | i | ) | const [private, virtual] |
Determine if the interface's underlying provider implements discard semantics natively, or if they are emulated through other means.
| i | the interface item to inspect. |
Implements IfConfigSet.
| bool IfConfigSetDummy::is_unreachable_emulated | ( | const IfTreeInterface & | i | ) | const [private, virtual] |
Determine if the interface's underlying provider implements unreachable semantics natively, or if they are emulated through other means.
| i | the interface item to inspect. |
Implements IfConfigSet.
| int IfConfigSetDummy::push_config | ( | const IfTree & | iftree | ) | [virtual] |
| int IfConfigSetDummy::start | ( | string & | error_msg | ) | [virtual] |
Start operation.
| error_msg | the error message (if error). |
Implements IfConfigSet.
| int IfConfigSetDummy::stop | ( | string & | error_msg | ) | [virtual] |
Stop operation.
| error_msg | the error message (if error). |
Implements IfConfigSet.