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