The congress.datasources.neutronv2_driver
Module¶
-
class
congress.datasources.neutronv2_driver.
NeutronV2Driver
(name='', args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver
,congress.datasources.datasource_driver.ExecutionDriver
-
ALLOCATION_POOLS
= 'allocation_pools'¶
-
DNS_NAMESERVERS
= 'dns_nameservers'¶
-
EXTERNAL_FIXED_IPS
= 'external_fixed_ips'¶
-
EXTERNAL_GATEWAY_INFOS
= 'external_gateway_infos'¶
-
FIXED_IPS
= 'fixed_ips'¶
-
FLOATING_IPS
= 'floating_ips'¶
-
HOST_ROUTES
= 'host_routes'¶
-
NETWORKS
= 'networks'¶
-
PORTS
= 'ports'¶
-
ROUTERS
= 'routers'¶
-
SECURITY_GROUPS
= 'security_groups'¶
-
SECURITY_GROUP_PORT_BINDINGS
= 'security_group_port_bindings'¶
-
SECURITY_GROUP_RULES
= 'security_group_rules'¶
-
SUBNETS
= 'subnets'¶
-
TRANSLATORS
= [{'selector-type': 'DICT_SELECTOR', 'table-name': 'networks', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'Network ID', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Network name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Network status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Administrative state of the network (true/false)', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Indicates if network is shared across all tenants', 'fieldname': 'shared', 'translator': {'translation-type': 'VALUE'}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'ports', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of port', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'port name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of attached network', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'MAC address of the port', 'fieldname': 'mac_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Administrative state of the port', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Port status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the device that uses this port', 'fieldname': 'device_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the entity that uses this port', 'fieldname': 'device_owner', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IP addresses for the port', 'fieldname': 'fixed_ips', 'translator': {'parent-col-name': 'port_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of Port', 'selector-type': 'DICT_SELECTOR', 'table-name': 'fixed_ips', 'parent-key': 'id', 'field-translators': ({'desc': 'The IP addresses for the port', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the subnet to which the port is attached', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}})}}, {'fieldname': 'security_groups', 'translator': {'parent-col-name': 'port_id', 'val-col': 'security_group_id', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of port', 'val-col-desc': 'UUID of security group', 'table-name': 'security_group_port_bindings', 'parent-key': 'id'}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'subnets', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of subnet', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'subnet name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of attached network', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IP version, which is 4 or 6', 'fieldname': 'ip_version', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The CIDR', 'fieldname': 'cidr', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The gateway IP address', 'fieldname': 'gateway_ip', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Is DHCP is enabled or not', 'fieldname': 'enable_dhcp', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IPv6 RA mode', 'fieldname': 'ipv6_ra_mode', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IPv6 address mode', 'fieldname': 'ipv6_address_mode', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'allocation_pools', 'translator': {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'allocation_pools', 'parent-key': 'id', 'field-translators': ({'desc': 'The start address for the allocation pools', 'fieldname': 'start', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The end address for the allocation pools', 'fieldname': 'end', 'translator': {'translation-type': 'VALUE'}})}}, {'fieldname': 'dns_nameservers', 'translator': {'parent-col-name': 'subnet_id', 'val-col': 'dns_nameserver', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of subnet', 'val-col-desc': 'The DNS server', 'table-name': 'dns_nameservers', 'parent-key': 'id'}}, {'fieldname': 'host_routes', 'translator': {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'host_routes', 'parent-key': 'id', 'field-translators': ({'desc': 'The destination for static route', 'fieldname': 'destination', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The next hop for the destination', 'fieldname': 'nexthop', 'translator': {'translation-type': 'VALUE'}})}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'routers', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'uuid of the router', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'router status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'administrative state of router', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'router name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': "indicates if it's distributed router ", 'fieldname': 'distributed', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'external_gateway_info', 'translator': {'field-translators': ({'desc': 'Network ID', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'current Source NAT status for router', 'fieldname': 'enable_snat', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'external_fixed_ips', 'translator': {'parent-col-name': 'router_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_fixed_ips', 'parent-key': 'router_id', 'field-translators': ({'desc': 'UUID of the subnet', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IP Address', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_gateway_infos', 'parent-key': 'id', 'parent-col-name': 'router_id', 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router'}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'security_groups', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'The UUID for the security group', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The security group name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'security group description', 'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'security_group_rules', 'translator': {'parent-col-name': 'security_group_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'uuid of security group', 'selector-type': 'DICT_SELECTOR', 'table-name': 'security_group_rules', 'parent-key': 'id', 'field-translators': ({'desc': 'The UUID of the security group rule', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'remote group id to associate with security group rule', 'fieldname': 'remote_group_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Direction in which the security group rule is applied', 'fieldname': 'direction', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IPv4 or IPv6', 'fieldname': 'ethertype', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'protocol that is matched by the security group rule.', 'fieldname': 'protocol', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Min port number in the range', 'fieldname': 'port_range_min', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Max port number in the range', 'fieldname': 'port_range_max', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Remote IP prefix to be associated', 'fieldname': 'remote_ip_prefix', 'translator': {'translation-type': 'VALUE'}})}})}, {'selector-type': 'DICT_SELECTOR', 'table-name': 'floating_ips', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'The UUID of the floating IP address', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of router', 'fieldname': 'router_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the network associated with floating IP', 'fieldname': 'floating_network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Fixed IP address associated with floating IP address', 'fieldname': 'fixed_ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The floating IP address', 'fieldname': 'floating_ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of port', 'fieldname': 'port_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The floating IP status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}})}]¶
-
execute
(action, action_args)¶ Overwrite ExecutionDriver.execute().
-
external_fixed_ips_translator
= {'parent-col-name': 'router_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_fixed_ips', 'parent-key': 'router_id', 'field-translators': ({'desc': 'UUID of the subnet', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IP Address', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}})}¶
-
floating_ips_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'floating_ips', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'The UUID of the floating IP address', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of router', 'fieldname': 'router_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the network associated with floating IP', 'fieldname': 'floating_network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Fixed IP address associated with floating IP address', 'fieldname': 'fixed_ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The floating IP address', 'fieldname': 'floating_ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of port', 'fieldname': 'port_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The floating IP status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}})}¶
-
static
get_datasource_info
()¶
-
initialize_update_methods
()¶
-
networks_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'networks', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'Network ID', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Network name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Network status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Administrative state of the network (true/false)', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Indicates if network is shared across all tenants', 'fieldname': 'shared', 'translator': {'translation-type': 'VALUE'}})}¶
-
ports_fixed_ips_translator
= {'parent-col-name': 'port_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of Port', 'selector-type': 'DICT_SELECTOR', 'table-name': 'fixed_ips', 'parent-key': 'id', 'field-translators': ({'desc': 'The IP addresses for the port', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the subnet to which the port is attached', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}})}¶
-
ports_security_groups_translator
= {'parent-col-name': 'port_id', 'val-col': 'security_group_id', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of port', 'val-col-desc': 'UUID of security group', 'table-name': 'security_group_port_bindings', 'parent-key': 'id'}¶
-
ports_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'ports', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of port', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'port name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of attached network', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'MAC address of the port', 'fieldname': 'mac_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Administrative state of the port', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Port status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the device that uses this port', 'fieldname': 'device_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the entity that uses this port', 'fieldname': 'device_owner', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IP addresses for the port', 'fieldname': 'fixed_ips', 'translator': {'parent-col-name': 'port_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of Port', 'selector-type': 'DICT_SELECTOR', 'table-name': 'fixed_ips', 'parent-key': 'id', 'field-translators': ({'desc': 'The IP addresses for the port', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The UUID of the subnet to which the port is attached', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}})}}, {'fieldname': 'security_groups', 'translator': {'parent-col-name': 'port_id', 'val-col': 'security_group_id', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of port', 'val-col-desc': 'UUID of security group', 'table-name': 'security_group_port_bindings', 'parent-key': 'id'}})}¶
-
routers_external_gateway_infos_translator
= {'field-translators': ({'desc': 'Network ID', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'current Source NAT status for router', 'fieldname': 'enable_snat', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'external_fixed_ips', 'translator': {'parent-col-name': 'router_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_fixed_ips', 'parent-key': 'router_id', 'field-translators': ({'desc': 'UUID of the subnet', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IP Address', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_gateway_infos', 'parent-key': 'id', 'parent-col-name': 'router_id', 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router'}¶
-
routers_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'routers', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'uuid of the router', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'router status', 'fieldname': 'status', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'administrative state of router', 'fieldname': 'admin_state_up', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'router name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': "indicates if it's distributed router ", 'fieldname': 'distributed', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'external_gateway_info', 'translator': {'field-translators': ({'desc': 'Network ID', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'current Source NAT status for router', 'fieldname': 'enable_snat', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'external_fixed_ips', 'translator': {'parent-col-name': 'router_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_fixed_ips', 'parent-key': 'router_id', 'field-translators': ({'desc': 'UUID of the subnet', 'fieldname': 'subnet_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IP Address', 'fieldname': 'ip_address', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_gateway_infos', 'parent-key': 'id', 'parent-col-name': 'router_id', 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of router'}})}¶
-
security_group_rules_translator
= {'parent-col-name': 'security_group_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'uuid of security group', 'selector-type': 'DICT_SELECTOR', 'table-name': 'security_group_rules', 'parent-key': 'id', 'field-translators': ({'desc': 'The UUID of the security group rule', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'remote group id to associate with security group rule', 'fieldname': 'remote_group_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Direction in which the security group rule is applied', 'fieldname': 'direction', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IPv4 or IPv6', 'fieldname': 'ethertype', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'protocol that is matched by the security group rule.', 'fieldname': 'protocol', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Min port number in the range', 'fieldname': 'port_range_min', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Max port number in the range', 'fieldname': 'port_range_max', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Remote IP prefix to be associated', 'fieldname': 'remote_ip_prefix', 'translator': {'translation-type': 'VALUE'}})}¶
-
security_group_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'security_groups', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'The UUID for the security group', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The security group name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'security group description', 'fieldname': 'description', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'security_group_rules', 'translator': {'parent-col-name': 'security_group_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'uuid of security group', 'selector-type': 'DICT_SELECTOR', 'table-name': 'security_group_rules', 'parent-key': 'id', 'field-translators': ({'desc': 'The UUID of the security group rule', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'remote group id to associate with security group rule', 'fieldname': 'remote_group_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Direction in which the security group rule is applied', 'fieldname': 'direction', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'IPv4 or IPv6', 'fieldname': 'ethertype', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'protocol that is matched by the security group rule.', 'fieldname': 'protocol', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Min port number in the range', 'fieldname': 'port_range_min', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Max port number in the range', 'fieldname': 'port_range_max', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Remote IP prefix to be associated', 'fieldname': 'remote_ip_prefix', 'translator': {'translation-type': 'VALUE'}})}})}¶
-
subnets_allocation_pools_translator
= {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'allocation_pools', 'parent-key': 'id', 'field-translators': ({'desc': 'The start address for the allocation pools', 'fieldname': 'start', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The end address for the allocation pools', 'fieldname': 'end', 'translator': {'translation-type': 'VALUE'}})}¶
-
subnets_dns_nameservers_translator
= {'parent-col-name': 'subnet_id', 'val-col': 'dns_nameserver', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of subnet', 'val-col-desc': 'The DNS server', 'table-name': 'dns_nameservers', 'parent-key': 'id'}¶
-
subnets_routes_translator
= {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'host_routes', 'parent-key': 'id', 'field-translators': ({'desc': 'The destination for static route', 'fieldname': 'destination', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The next hop for the destination', 'fieldname': 'nexthop', 'translator': {'translation-type': 'VALUE'}})}¶
-
subnets_translator
= {'selector-type': 'DICT_SELECTOR', 'table-name': 'subnets', 'translation-type': 'HDICT', 'field-translators': ({'desc': 'UUID of subnet', 'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'tenant ID', 'fieldname': 'tenant_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'subnet name', 'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'UUID of attached network', 'fieldname': 'network_id', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IP version, which is 4 or 6', 'fieldname': 'ip_version', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The CIDR', 'fieldname': 'cidr', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The gateway IP address', 'fieldname': 'gateway_ip', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'Is DHCP is enabled or not', 'fieldname': 'enable_dhcp', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IPv6 RA mode', 'fieldname': 'ipv6_ra_mode', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The IPv6 address mode', 'fieldname': 'ipv6_address_mode', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'allocation_pools', 'translator': {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'allocation_pools', 'parent-key': 'id', 'field-translators': ({'desc': 'The start address for the allocation pools', 'fieldname': 'start', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The end address for the allocation pools', 'fieldname': 'end', 'translator': {'translation-type': 'VALUE'}})}}, {'fieldname': 'dns_nameservers', 'translator': {'parent-col-name': 'subnet_id', 'val-col': 'dns_nameserver', 'translator': {'translation-type': 'VALUE'}, 'translation-type': 'LIST', 'parent-key-desc': 'UUID of subnet', 'val-col-desc': 'The DNS server', 'table-name': 'dns_nameservers', 'parent-key': 'id'}}, {'fieldname': 'host_routes', 'translator': {'parent-col-name': 'subnet_id', 'in-list': True, 'translation-type': 'HDICT', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'host_routes', 'parent-key': 'id', 'field-translators': ({'desc': 'The destination for static route', 'fieldname': 'destination', 'translator': {'translation-type': 'VALUE'}}, {'desc': 'The next hop for the destination', 'fieldname': 'nexthop', 'translator': {'translation-type': 'VALUE'}})}})}¶
-
value_trans
= {'translation-type': 'VALUE'}¶
-