def __init__(self, nat_dict):
     self.clients_net_start  = nat_dict['clients_net_start']
     self.client_acl_wildcard= nat_dict['client_acl_wildcard_mask']
     self.net_increment      = misc_methods.gen_increment_dict(nat_dict['dual_port_mask'])
     self.nat_pool_start     = nat_dict['pool_start']
     self.nat_netmask        = nat_dict['pool_netmask']
     self.nat_dict           = nat_dict
Esempio n. 2
0
 def __init__(self, nat_dict):
     self.clients_net_start  = nat_dict['clients_net_start']
     self.client_acl_wildcard= nat_dict['client_acl_wildcard_mask']
     self.net_increment      = misc_methods.gen_increment_dict(nat_dict['dual_port_mask'])
     self.nat_pool_start     = nat_dict['pool_start']
     self.nat_netmask        = nat_dict['pool_netmask']
     self.nat_dict           = nat_dict
 def __init__(self, static_route_dict):
     self.clients_start  = static_route_dict['clients_start']
     self.servers_start  = static_route_dict['servers_start']
     self.net_increment  = misc_methods.gen_increment_dict(static_route_dict['dual_port_mask'])
     self.client_mask    = static_route_dict['client_destination_mask']
     self.server_mask    = static_route_dict['server_destination_mask']
     self.client_net_start = self.extract_net_addr(self.clients_start, self.client_mask)
     self.server_net_start = self.extract_net_addr(self.servers_start, self.server_mask)
     self.static_route_dict = static_route_dict
Esempio n. 4
0
 def __init__(self, static_route_dict):
     self.clients_start  = static_route_dict['clients_start']
     self.servers_start  = static_route_dict['servers_start']
     self.net_increment  = misc_methods.gen_increment_dict(static_route_dict['dual_port_mask'])
     self.client_mask    = static_route_dict['client_destination_mask']
     self.server_mask    = static_route_dict['server_destination_mask']
     self.client_net_start = self.extract_net_addr(self.clients_start, self.client_mask)
     self.server_net_start = self.extract_net_addr(self.servers_start, self.server_mask)
     self.static_route_dict = static_route_dict