IfConfigSet (FeaDataPlaneManager& fea_data_plane_manager)
| IfConfigSet |
Constructor.
Parameters:
fea_data_plane_manager | the corresponding data plane manager (FeaDataPlaneManager). |
~IfConfigSet ()
| ~IfConfigSet |
[virtual]
IfConfig& ifconfig ()
| ifconfig |
Get the IfConfig instance.
Returns: the IfConfig instance.
FeaDataPlaneManager& fea_data_plane_manager ()
| fea_data_plane_manager |
Get the FeaDataPlaneManager instance.
Returns: the FeaDataPlaneManager instance.
bool is_running ()
| is_running |
[const virtual]
Test whether this instance is running.
Returns: true if the instance is running, otherwise false.
int start (string& error_msg)
| start |
[pure virtual]
Start operation.
Parameters:
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int stop (string& error_msg)
| stop |
[pure virtual]
Stop operation.
Parameters:
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int push_config (IfTree& iftree)
| push_config |
[virtual]
Push the network interface configuration into the underlying system.
Note that on return some of the interface tree configuration state may be modified.
Parameters:
iftree | the interface tree configuration to push. |
Returns: XORP_OK on success, otherwise XORP_ERROR.
bool is_discard_emulated (const IfTreeInterface& i)
| is_discard_emulated |
[protected const pure virtual]
Determine if the interface's underlying provider implements discard semantics natively, or if they are emulated through other means.
Parameters:
i | the interface item to inspect. |
Returns: true if discard semantics are emulated.
bool is_unreachable_emulated (const IfTreeInterface& i)
| is_unreachable_emulated |
[protected const pure virtual]
Determine if the interface's underlying provider implements unreachable semantics natively, or if they are emulated through other means.
Parameters:
i | the interface item to inspect. |
Returns: true if unreachable semantics are emulated.
int config_begin (string& error_msg)
| config_begin |
[protected pure virtual]
Start the configuration.
Parameters:
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int config_end (string& error_msg)
| config_end |
[protected pure virtual]
Complete the configuration.
Parameters:
error_msg | the error message (if error). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int config_interface_begin (const IfTreeInterface* pulled_ifp,
IfTreeInterface& config_iface,
string& error_msg)
| config_interface_begin |
[protected pure virtual]
Begin the interface configuration.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int config_interface_end (const IfTreeInterface* pulled_ifp,
const IfTreeInterface& config_iface,
string& error_msg)
| config_interface_end |
[protected pure virtual]
End the interface configuration.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int config_vif_begin (const IfTreeInterface* pulled_ifp,
const IfTreeVif* pulled_vifp,
const IfTreeInterface& config_iface,
const IfTreeVif& config_vif,
string& error_msg)
| config_vif_begin |
[protected pure virtual]
Begin the vif configuration.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
int config_vif_end (const IfTreeInterface* pulled_ifp,
const IfTreeVif* pulled_vifp,
const IfTreeInterface& config_iface,
const IfTreeVif& config_vif,
string& error_msg)
| config_vif_end |
[protected pure virtual]
End the vif configuration.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
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)
| config_add_address |
[protected pure virtual]
Add IPv4 address information.
If an entry for the same address already exists, is is overwritten with the new information.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
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)
| config_delete_address |
[protected pure virtual]
Delete IPv4 address information.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
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)
| config_add_address |
[protected pure virtual]
Add IPv6 address information.
If an entry for the same address already exists, is is overwritten with the new information.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
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)
| config_delete_address |
[protected pure virtual]
Delete IPv6 address information.
Parameters:
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). |
Returns: XORP_OK on success, otherwise XORP_ERROR.
bool _is_running | _is_running |
[protected]