Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
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.


Constructor & Destructor Documentation

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

Definition at line 19 of file ip_rule.py.


Member Function Documentation

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.

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.

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 19 of file ip_rule.py.

Definition at line 19 of file ip_rule.py.

Definition at line 28 of file ip_rule.py.

Definition at line 19 of file ip_rule.py.

Definition at line 19 of file ip_rule.py.


The documentation for this class was generated from the following file:


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:15