Module network :: Class VirtualInterface
[hide private]
[frames] | no frames]

Class VirtualInterface

source code

   object --+    
            |    
base.AxObject --+
                |
               VirtualInterface


Implementation of the aXAPI network.ve.* method to 
manage the virtual interface configuration as getAll/get/set/ipv4.add/ipv4.delete/ipv6.add/ipv6.delete.

Usage:
    # ve with options:
    # port_num         (required) virtual interface number
    # name             virtual interface name
    # status           virtual interface status, disabled(0) or enabled(1)
    # normal_rate      icmp normal rate limit, if option is set, icmp rate limit is enabled,
    #                  if option is not set, icmp rate limit is disabled on this virtual port.
    # lookup_rate      icmp lookup rate.
    # lookup_period    icmp lookup period.
    # ipv4_addr_list   tag of IPv4 address list.
    #     ipv4_addr         IPv4 address
    #     ipv4_mask         IPv4 mask
    # ipv4_acl         IPv4 access list
    # ipv6_addr_list   tag of IPv6 address list
    #     ipv6_addr         IPv6 address
    #     ipv6_prefix_len   IPv6 prefix length
    #     ipv6_is_any_cast_addr     any cast status of address, enabled (1), disabled (0)
    # ipv6_auto_link_local          automatic link local status, enabled(1), disabled(0)
    # ipv6_link_loal_cfg            tag of manual IPv6 link local address.
    #     ipv6_link_local_addr           IPv6 link local address
    #     ipv6_link_local_prefix_len     the prefix length of this IPv6 address
    #     ipv6_link_local_is_any_cast    any cast status of address. Enabled (1), disabled (0)
    # ipv6_acl                  IPv6 access name
    # allow_promiscuous_vip     status, enabled (1), disabled (0)
    # tcp_sync_cookie           TCP sync cookie status, enabled (1), disabled (0)     
          
    # Example: 

Instance Methods [hide private]
 
configure(self)
method: network.ve.set Configure a ve.
source code
 
deleteIpv4Address(self, addr, mask)
method: network.ve.ipv4.delete Delete the IPv4 address, addr/mask for given interface.
source code
 
addIpv4Address(self, addr, mask)
method: network.ve.ipv4.add Add the IPv4 address, addr/mask for given interface.
source code
 
deleteIpv6Address(self, v6_addr, v6_addr_prefix_len)
method: network.interface.ipv6.delete Delete the IPv6 address, v6_addr/v6_addr_prefix_len for given interface.
source code
 
addIpv6Address(self, v6_addr, v6_addr_prefix_len)
method: network.interface.ipv6.add Add the IPv6 address, v6_addr/v6_addr_prefix_len for given interface.
source code
 
deleteAllIPv4Addr(self) source code
 
deleteAllIPv6Addr(self) source code

Inherited from base.AxObject: __getattr__, __getitem__, __init__, __repr__, __setattr__, __setitem__, __str__, dump, getInfo, getObjectDict, getRequestPostDataJson, getRequestPostDataXml

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
getAll()
method : network.ve.getAll Returns a list of ve configuration in VirtualInterface instance.
source code
 
get(port_num)
method: network.ve.get Get the interface configuration by given port number.
source code
Class Variables [hide private]
  __display__ = ['port_num', 'status', 'name']
  __obj_name__ = 've'
  __xml_convrt__ = {'ipv4_addr_list': 'ipv4', 'ipv6_addr_list': ...

Inherited from base.AxObject: __obj_readonly__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get(port_num)
Static Method

source code 

method: network.ve.get Get the interface configuration by given port number.

Overrides: base.AxObject.get

Class Variable Details [hide private]

__xml_convrt__

Value:
{'ipv4_addr_list': 'ipv4',
 'ipv6_addr_list': 'ipv6_addr',
 've_list': 've'}