multi_interface_roam::ip_rule::IpRule Class Reference

List of all members.

Public Member Functions

def __init__
def add
def flush
def set

Public Attributes

 is_shutdown
 prev
 priority
 state_pub

Private Member Functions

def _set_or_add
def _shutdown

Private Attributes

 _lock

Detailed Description

Manage the ip rules for a given priority level.

There are two intended uses:

1. There is a single dynamic rule at that priority level. Use set to
change it.

2. There are multiple static rules at that level. Use add to add each
one of them, and flush to remove them all.

Definition at line 8 of file ip_rule.py.


Member Function Documentation

def multi_interface_roam::ip_rule::IpRule::__init__ (   self,
  priority 
)

Definition at line 19 of file ip_rule.py.

def multi_interface_roam::ip_rule::IpRule::_set_or_add (   self,
  remove_old,
  args 
) [private]
Changes/adds the rule. Call with no arguments to clear the rule.

Definition at line 41 of file ip_rule.py.

def multi_interface_roam::ip_rule::IpRule::_shutdown (   self  )  [private]

Definition at line 71 of file ip_rule.py.

def multi_interface_roam::ip_rule::IpRule::add (   self,
  args 
)
Adds a rule without removing the existing one.

Definition at line 66 of file ip_rule.py.

def multi_interface_roam::ip_rule::IpRule::flush (   self  ) 

Definition at line 28 of file ip_rule.py.

def multi_interface_roam::ip_rule::IpRule::set (   self,
  args 
)
Changes/adds the rule. Call with no arguments to clear the rule.

Definition at line 62 of file ip_rule.py.


Member Data Documentation

Definition at line 20 of file ip_rule.py.

Definition at line 22 of file ip_rule.py.

Definition at line 29 of file ip_rule.py.

Definition at line 21 of file ip_rule.py.

Definition at line 23 of file ip_rule.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Properties Friends Defines


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Fri Jan 11 09:52:35 2013