XrlStaticRoutesNode (EventLoop& eventloop,
const string& class_name,
const string& finder_hostname,
uint16_t finder_port,
const string& finder_target,
const string& fea_target,
const string& rib_target)
| XrlStaticRoutesNode |
~XrlStaticRoutesNode ()
| ~XrlStaticRoutesNode |
int startup ()
| startup |
Startup the node operation.
Returns: XORP_OK on success, otherwise XORP_ERROR.
Reimplemented from StaticRoutesNode.
int shutdown ()
| shutdown |
Shutdown the node operation.
Returns: XORP_OK on success, otherwise XORP_ERROR.
Reimplemented from StaticRoutesNode.
XrlRouter& xrl_router ()
| xrl_router |
Get a reference to the XrlRouter instance.
Returns: a reference to the XrlRouter (XrlRouter) instance.
XrlCmdError common_0_1_get_target_name (
string& name)
| common_0_1_get_target_name |
[protected]
Get name of Xrl Target
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError common_0_1_get_version (
string& version)
| common_0_1_get_version |
[protected]
Get version string from Xrl Target
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError common_0_1_get_status (
uint32_t& status,
string& reason)
| common_0_1_get_status |
[protected]
Get status of Xrl Target
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError common_0_1_shutdown ()
| common_0_1_shutdown |
[protected]
Request clean shutdown of Xrl Target
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError finder_event_observer_0_1_xrl_target_birth (
const string& target_class,
const string& target_instance)
| finder_event_observer_0_1_xrl_target_birth |
[protected]
Announce target birth to observer.
Parameters:
target_class | the target class name. |
target_instance | the target instance name. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError finder_event_observer_0_1_xrl_target_death (
const string& target_class,
const string& target_instance)
| finder_event_observer_0_1_xrl_target_death |
[protected]
Announce target death to observer.
Parameters:
target_class | the target class name. |
target_instance | the target instance name. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_enable_static_routes (
const bool& enable)
| static_routes_0_1_enable_static_routes |
[protected]
Enable/disable/start/stop StaticRoutes.
Parameters:
enable | if true, then enable StaticRoutes, otherwise disable it. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_start_static_routes ()
| static_routes_0_1_start_static_routes |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_stop_static_routes ()
| static_routes_0_1_stop_static_routes |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const uint32_t& metric)
| static_routes_0_1_add_route4 |
[protected]
Add/replace/delete a static route.
Parameters:
unicast | if true, then the route would be used for unicast routing. |
multicast | if true, then the route would be used in the MRIB (Multicast Routing Information Base) for multicast purpose (e.g., computing the Reverse-Path Forwarding information). |
network | the network address prefix this route applies to. |
nexthop | the address of the next-hop router for this route. |
metric | the metric distance for this route. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const uint32_t& metric)
| static_routes_0_1_add_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const uint32_t& metric)
| static_routes_0_1_replace_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const uint32_t& metric)
| static_routes_0_1_replace_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop)
| static_routes_0_1_delete_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop)
| static_routes_0_1_delete_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_backup_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const uint32_t& metric)
| static_routes_0_1_add_backup_route4 |
[protected]
Add/replace/delete a backup static route.
Parameters:
unicast | if true, then the route would be used for unicast routing. |
multicast | if true, then the route would be used in the MRIB (Multicast Routing Information Base) for multicast purpose (e.g., computing the Reverse-Path Forwarding information). |
network | the network address prefix this route applies to. |
nexthop | the address of the next-hop router for this route. |
metric | the metric distance for this route. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_backup_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const uint32_t& metric)
| static_routes_0_1_add_backup_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_backup_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const uint32_t& metric)
| static_routes_0_1_replace_backup_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_backup_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const uint32_t& metric)
| static_routes_0_1_replace_backup_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_backup_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop)
| static_routes_0_1_delete_backup_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_backup_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop)
| static_routes_0_1_delete_backup_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_add_interface_route4 |
[protected]
Add/replace/delete a static route by explicitly specifying the network interface toward the destination.
Parameters:
unicast | if true, then the route would be used for unicast routing. |
multicast | if true, then the route would be used in the MRIB (Multicast Routing Information Base) for multicast purpose (e.g., computing the Reverse-Path Forwarding information). |
network | the network address prefix this route applies to. |
nexthop | the address of the next-hop router for this route. |
ifname | of the name of the physical interface toward the destination. |
vifname | of the name of the virtual interface toward the destination. |
metric | the metric distance for this route. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_add_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_replace_interface_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_replace_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname)
| static_routes_0_1_delete_interface_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname)
| static_routes_0_1_delete_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_backup_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_add_backup_interface_route4 |
[protected]
Add/replace/delete a backup static route by explicitly specifying the network interface toward the destination.
Parameters:
unicast | if true, then the route would be used for unicast routing. |
multicast | if true, then the route would be used in the MRIB (Multicast Routing Information Base) for multicast purpose (e.g., computing the Reverse-Path Forwarding information). |
network | the network address prefix this route applies to. |
nexthop | the address of the next-hop router for this route. |
ifname | of the name of the physical interface toward the destination. |
vifname | of the name of the virtual interface toward the destination. |
metric | the metric distance for this route. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_add_backup_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_add_backup_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_backup_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_replace_backup_interface_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_replace_backup_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname,
const uint32_t& metric)
| static_routes_0_1_replace_backup_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_backup_interface_route4 (
const bool& unicast,
const bool& multicast,
const IPv4Net& network,
const IPv4& nexthop,
const string& ifname,
const string& vifname)
| static_routes_0_1_delete_backup_interface_route4 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_delete_backup_interface_route6 (
const bool& unicast,
const bool& multicast,
const IPv6Net& network,
const IPv6& nexthop,
const string& ifname,
const string& vifname)
| static_routes_0_1_delete_backup_interface_route6 |
[protected]
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError static_routes_0_1_enable_log_trace_all (
const bool& enable)
| static_routes_0_1_enable_log_trace_all |
[protected]
Enable/disable the StaticRoutes trace log for all operations.
Parameters:
enable | if true, then enable the trace log, otherwise disable it. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError policy_backend_0_1_configure (
const uint32_t& filter,
const string& conf)
| policy_backend_0_1_configure |
[protected]
Configure a policy filter.
Parameters:
filter | Id of filter to configure. |
conf | Configuration of filter. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError policy_backend_0_1_reset (
const uint32_t& filter)
| policy_backend_0_1_reset |
[protected]
Reset a policy filter.
Parameters:
filter | Id of filter to reset. |
Reimplemented from XrlStaticRoutesTargetBase.
XrlCmdError policy_backend_0_1_push_routes ()
| policy_backend_0_1_push_routes |
[protected]
Push routes through policy filters for re-filtering.
Reimplemented from XrlStaticRoutesTargetBase.