xorp

XrlVrrpV0p1Client Class Reference

List of all members.

Public Types

typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddVridCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteVridCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPriorityCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetIntervalCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPreemptCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetDisableCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddIpCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPrefixCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteIpCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetIfsCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetVifsCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetVridsCB
typedef XorpCallback3< void,
const XrlError &, const string
*, const IPv4 * >::RefPtr 
GetVridInfoCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddVridCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteVridCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPriorityCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetIntervalCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPreemptCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetDisableCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddIpCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetPrefixCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteIpCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetIfsCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetVifsCB
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GetVridsCB
typedef XorpCallback3< void,
const XrlError &, const string
*, const IPv4 * >::RefPtr 
GetVridInfoCB

Public Member Functions

 XrlVrrpV0p1Client (XrlSender *s)
bool send_add_vrid (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const AddVridCB &cb)
 Send Xrl intended to:
bool send_delete_vrid (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const DeleteVridCB &cb)
 Send Xrl intended to:
bool send_set_priority (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const uint32_t &priority, const SetPriorityCB &cb)
 Send Xrl intended to:
bool send_set_interval (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const uint32_t &interval, const SetIntervalCB &cb)
 Send Xrl intended to:
bool send_set_preempt (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const bool &preempt, const SetPreemptCB &cb)
 Send Xrl intended to:
bool send_set_disable (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const bool &disable, const SetDisableCB &cb)
 Send Xrl intended to:
bool send_add_ip (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const AddIpCB &cb)
 Send Xrl intended to:
bool send_set_prefix (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const uint32_t &prefix_len, const SetPrefixCB &cb)
bool send_delete_ip (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const DeleteIpCB &cb)
 Send Xrl intended to:
bool send_get_ifs (const char *dst_xrl_target_name, const GetIfsCB &cb)
 Send Xrl intended to:
bool send_get_vifs (const char *dst_xrl_target_name, const string &ifname, const GetVifsCB &cb)
 Send Xrl intended to:
bool send_get_vrids (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const GetVridsCB &cb)
 Send Xrl intended to:
bool send_get_vrid_info (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const GetVridInfoCB &cb)
 Send Xrl intended to:
 XrlVrrpV0p1Client (XrlSender *s)
bool send_add_vrid (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const AddVridCB &cb)
 Send Xrl intended to:
bool send_delete_vrid (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const DeleteVridCB &cb)
 Send Xrl intended to:
bool send_set_priority (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const uint32_t &priority, const SetPriorityCB &cb)
 Send Xrl intended to:
bool send_set_interval (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const uint32_t &interval, const SetIntervalCB &cb)
 Send Xrl intended to:
bool send_set_preempt (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const bool &preempt, const SetPreemptCB &cb)
 Send Xrl intended to:
bool send_set_disable (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const bool &disable, const SetDisableCB &cb)
 Send Xrl intended to:
bool send_add_ip (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const AddIpCB &cb)
 Send Xrl intended to:
bool send_set_prefix (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const uint32_t &prefix_len, const SetPrefixCB &cb)
bool send_delete_ip (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const IPv4 &ip, const DeleteIpCB &cb)
 Send Xrl intended to:
bool send_get_ifs (const char *dst_xrl_target_name, const GetIfsCB &cb)
 Send Xrl intended to:
bool send_get_vifs (const char *dst_xrl_target_name, const string &ifname, const GetVifsCB &cb)
 Send Xrl intended to:
bool send_get_vrids (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const GetVridsCB &cb)
 Send Xrl intended to:
bool send_get_vrid_info (const char *dst_xrl_target_name, const string &ifname, const string &vifname, const uint32_t &vrid, const GetVridInfoCB &cb)
 Send Xrl intended to:

Protected Attributes

XrlSender_sender

Static Private Member Functions

static void unmarshall_add_vrid (const XrlError &e, XrlArgs *a, AddVridCB cb)
static void unmarshall_delete_vrid (const XrlError &e, XrlArgs *a, DeleteVridCB cb)
static void unmarshall_set_priority (const XrlError &e, XrlArgs *a, SetPriorityCB cb)
static void unmarshall_set_interval (const XrlError &e, XrlArgs *a, SetIntervalCB cb)
static void unmarshall_set_preempt (const XrlError &e, XrlArgs *a, SetPreemptCB cb)
static void unmarshall_set_disable (const XrlError &e, XrlArgs *a, SetDisableCB cb)
static void unmarshall_add_ip (const XrlError &e, XrlArgs *a, AddIpCB cb)
static void unmarshall_set_prefix (const XrlError &e, XrlArgs *a, SetPrefixCB cb)
static void unmarshall_delete_ip (const XrlError &e, XrlArgs *a, DeleteIpCB cb)
static void unmarshall_get_ifs (const XrlError &e, XrlArgs *a, GetIfsCB cb)
static void unmarshall_get_vifs (const XrlError &e, XrlArgs *a, GetVifsCB cb)
static void unmarshall_get_vrids (const XrlError &e, XrlArgs *a, GetVridsCB cb)
static void unmarshall_get_vrid_info (const XrlError &e, XrlArgs *a, GetVridInfoCB cb)
static void unmarshall_add_vrid (const XrlError &e, XrlArgs *a, AddVridCB cb)
static void unmarshall_delete_vrid (const XrlError &e, XrlArgs *a, DeleteVridCB cb)
static void unmarshall_set_priority (const XrlError &e, XrlArgs *a, SetPriorityCB cb)
static void unmarshall_set_interval (const XrlError &e, XrlArgs *a, SetIntervalCB cb)
static void unmarshall_set_preempt (const XrlError &e, XrlArgs *a, SetPreemptCB cb)
static void unmarshall_set_disable (const XrlError &e, XrlArgs *a, SetDisableCB cb)
static void unmarshall_add_ip (const XrlError &e, XrlArgs *a, AddIpCB cb)
static void unmarshall_set_prefix (const XrlError &e, XrlArgs *a, SetPrefixCB cb)
static void unmarshall_delete_ip (const XrlError &e, XrlArgs *a, DeleteIpCB cb)
static void unmarshall_get_ifs (const XrlError &e, XrlArgs *a, GetIfsCB cb)
static void unmarshall_get_vifs (const XrlError &e, XrlArgs *a, GetVifsCB cb)
static void unmarshall_get_vrids (const XrlError &e, XrlArgs *a, GetVridsCB cb)
static void unmarshall_get_vrid_info (const XrlError &e, XrlArgs *a, GetVridInfoCB cb)

Private Attributes

auto_ptr< Xrlap_xrl_add_vrid
auto_ptr< Xrlap_xrl_delete_vrid
auto_ptr< Xrlap_xrl_set_priority
auto_ptr< Xrlap_xrl_set_interval
auto_ptr< Xrlap_xrl_set_preempt
auto_ptr< Xrlap_xrl_set_disable
auto_ptr< Xrlap_xrl_add_ip
auto_ptr< Xrlap_xrl_set_prefix
auto_ptr< Xrlap_xrl_delete_ip
auto_ptr< Xrlap_xrl_get_ifs
auto_ptr< Xrlap_xrl_get_vifs
auto_ptr< Xrlap_xrl_get_vrids
auto_ptr< Xrlap_xrl_get_vrid_info

Member Function Documentation

bool XrlVrrpV0p1Client::send_add_ip ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const IPv4 ip,
const AddIpCB &  cb 
)

Send Xrl intended to:

Add an IP to the virtual router.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
ipthe IP address to add.
bool XrlVrrpV0p1Client::send_add_ip ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const IPv4 ip,
const AddIpCB &  cb 
)

Send Xrl intended to:

Add an IP to the virtual router.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
ipthe IP address to add.
bool XrlVrrpV0p1Client::send_add_vrid ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const AddVridCB &  cb 
)

Send Xrl intended to:

Create a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface name.
vifnamethe vif name.
vridthe VRRP router ID.
bool XrlVrrpV0p1Client::send_add_vrid ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const AddVridCB &  cb 
)

Send Xrl intended to:

Create a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface name.
vifnamethe vif name.
vridthe VRRP router ID.
bool XrlVrrpV0p1Client::send_delete_ip ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const IPv4 ip,
const DeleteIpCB &  cb 
)

Send Xrl intended to:

Remove an IP from the virtual router.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
ipthe IP address to remove.
bool XrlVrrpV0p1Client::send_delete_ip ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const IPv4 ip,
const DeleteIpCB &  cb 
)

Send Xrl intended to:

Remove an IP from the virtual router.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
ipthe IP address to remove.
bool XrlVrrpV0p1Client::send_delete_vrid ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const DeleteVridCB &  cb 
)

Send Xrl intended to:

Remove a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface name.
vifnamethe vif name.
vridthe VRRP router ID.
bool XrlVrrpV0p1Client::send_delete_vrid ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const DeleteVridCB &  cb 
)

Send Xrl intended to:

Remove a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface name.
vifnamethe vif name.
vridthe VRRP router ID.
bool XrlVrrpV0p1Client::send_get_ifs ( const char *  dst_xrl_target_name,
const GetIfsCB &  cb 
)

Send Xrl intended to:

Get the physical interfaces on which VRRP is running.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlVrrpV0p1Client::send_get_ifs ( const char *  dst_xrl_target_name,
const GetIfsCB &  cb 
)

Send Xrl intended to:

Get the physical interfaces on which VRRP is running.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlVrrpV0p1Client::send_get_vifs ( const char *  dst_xrl_target_name,
const string &  ifname,
const GetVifsCB &  cb 
)

Send Xrl intended to:

For a given physical interface, get the virtual interfaces on which VRRP is running.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe physical interface name.
bool XrlVrrpV0p1Client::send_get_vifs ( const char *  dst_xrl_target_name,
const string &  ifname,
const GetVifsCB &  cb 
)

Send Xrl intended to:

For a given physical interface, get the virtual interfaces on which VRRP is running.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe physical interface name.
bool XrlVrrpV0p1Client::send_get_vrid_info ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const GetVridInfoCB &  cb 
)

Send Xrl intended to:

Get state information from a particular VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which the VRRP instance is running.
vifnamethe vif on which the instance is running.
vridthe virtual router ID of the VRRP instance.
bool XrlVrrpV0p1Client::send_get_vrid_info ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const GetVridInfoCB &  cb 
)

Send Xrl intended to:

Get state information from a particular VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which the VRRP instance is running.
vifnamethe vif on which the instance is running.
vridthe virtual router ID of the VRRP instance.
bool XrlVrrpV0p1Client::send_get_vrids ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const GetVridsCB &  cb 
)

Send Xrl intended to:

Get the virtual router IDs of all the VRRP instances running on a network interface.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe physical interface name.
vifnamethe logical interface name.
bool XrlVrrpV0p1Client::send_get_vrids ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const GetVridsCB &  cb 
)

Send Xrl intended to:

Get the virtual router IDs of all the VRRP instances running on a network interface.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe physical interface name.
vifnamethe logical interface name.
bool XrlVrrpV0p1Client::send_set_disable ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const bool &  disable,
const SetDisableCB &  cb 
)

Send Xrl intended to:

Start or stop a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
disableif true, stop VRRP. Start it otherwise.
bool XrlVrrpV0p1Client::send_set_disable ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const bool &  disable,
const SetDisableCB &  cb 
)

Send Xrl intended to:

Start or stop a VRRP instance.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
disableif true, stop VRRP. Start it otherwise.
bool XrlVrrpV0p1Client::send_set_interval ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const uint32_t &  interval,
const SetIntervalCB &  cb 
)

Send Xrl intended to:

Set the advertisement interval.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
intervalthe new advertisement interval.
bool XrlVrrpV0p1Client::send_set_interval ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const uint32_t &  interval,
const SetIntervalCB &  cb 
)

Send Xrl intended to:

Set the advertisement interval.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
intervalthe new advertisement interval.
bool XrlVrrpV0p1Client::send_set_preempt ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const bool &  preempt,
const SetPreemptCB &  cb 
)

Send Xrl intended to:

Set whether a high priority backup router should preempt a low priority router that is acting as a master.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
preempttrue if preemption should occur.
bool XrlVrrpV0p1Client::send_set_preempt ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const bool &  preempt,
const SetPreemptCB &  cb 
)

Send Xrl intended to:

Set whether a high priority backup router should preempt a low priority router that is acting as a master.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
preempttrue if preemption should occur.
bool XrlVrrpV0p1Client::send_set_priority ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const uint32_t &  priority,
const SetPriorityCB &  cb 
)

Send Xrl intended to:

Set the router's priority.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
prioritythe new priority value.
bool XrlVrrpV0p1Client::send_set_priority ( const char *  dst_xrl_target_name,
const string &  ifname,
const string &  vifname,
const uint32_t &  vrid,
const uint32_t &  priority,
const SetPriorityCB &  cb 
)

Send Xrl intended to:

Set the router's priority.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
ifnamethe interface on which VRRP is running.
vifnamethe vif on which VRRP is running.
vridthe VRRP router ID.
prioritythe new priority value.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations