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 = [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘networks’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of Port’, ‘parent-col-name’: ‘port_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘fixed_ips’}, ‘desc’: ‘The IP addresses for the port’, ‘fieldname’: ‘fixed_ips’}, {‘translator’: {‘parent-key-desc’: ‘UUID of port’, ‘parent-col-name’: ‘port_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘security_group_id’, ‘val-col-desc’: ‘UUID of security group’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_port_bindings’}, ‘fieldname’: ‘security_groups’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘ports’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The start address for the allocation pools’, ‘fieldname’: ‘start’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The end address for the allocation pools’, ‘fieldname’: ‘end’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘allocation_pools’}, ‘fieldname’: ‘allocation_pools’}, {‘translator’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘dns_nameserver’, ‘val-col-desc’: ‘The DNS server’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘dns_nameservers’}, ‘fieldname’: ‘dns_nameservers’}, {‘translator’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The destination for static route’, ‘fieldname’: ‘destination’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The next hop for the destination’, ‘fieldname’: ‘nexthop’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘host_routes’}, ‘fieldname’: ‘host_routes’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘subnets’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of router’, ‘selector-type’: ‘DICT_SELECTOR’, ‘parent-col-name’: ‘router_id’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘Network ID’, ‘fieldname’: ‘network_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘current Source NAT status for router’, ‘fieldname’: ‘enable_snat’}, {‘translator’: {‘parent-key-desc’: ‘UUID of router’, ‘parent-col-name’: ‘router_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘UUID of the subnet’, ‘fieldname’: ‘subnet_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘IP Address’, ‘fieldname’: ‘ip_address’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘router_id’, ‘table-name’: ‘external_fixed_ips’}, ‘fieldname’: ‘external_fixed_ips’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘external_gateway_infos’}, ‘fieldname’: ‘external_gateway_info’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘routers’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘uuid of security group’, ‘parent-col-name’: ‘security_group_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_rules’}, ‘fieldname’: ‘security_group_rules’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘security_groups’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘floating_ips’}]
execute(action, action_args)

Overwrite ExecutionDriver.execute().

external_fixed_ips_translator = {‘parent-key-desc’: ‘UUID of router’, ‘parent-col-name’: ‘router_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘UUID of the subnet’, ‘fieldname’: ‘subnet_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘IP Address’, ‘fieldname’: ‘ip_address’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘router_id’, ‘table-name’: ‘external_fixed_ips’}
floating_ips_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘floating_ips’}
static get_datasource_info()
initialize_update_methods()
networks_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘networks’}
ports_fixed_ips_translator = {‘parent-key-desc’: ‘UUID of Port’, ‘parent-col-name’: ‘port_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘fixed_ips’}
ports_security_groups_translator = {‘parent-key-desc’: ‘UUID of port’, ‘parent-col-name’: ‘port_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘security_group_id’, ‘val-col-desc’: ‘UUID of security group’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_port_bindings’}
ports_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of Port’, ‘parent-col-name’: ‘port_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘fixed_ips’}, ‘desc’: ‘The IP addresses for the port’, ‘fieldname’: ‘fixed_ips’}, {‘translator’: {‘parent-key-desc’: ‘UUID of port’, ‘parent-col-name’: ‘port_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘security_group_id’, ‘val-col-desc’: ‘UUID of security group’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_port_bindings’}, ‘fieldname’: ‘security_groups’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘ports’}
routers_external_gateway_infos_translator = {‘parent-key-desc’: ‘UUID of router’, ‘selector-type’: ‘DICT_SELECTOR’, ‘parent-col-name’: ‘router_id’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘Network ID’, ‘fieldname’: ‘network_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘current Source NAT status for router’, ‘fieldname’: ‘enable_snat’}, {‘translator’: {‘parent-key-desc’: ‘UUID of router’, ‘parent-col-name’: ‘router_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘UUID of the subnet’, ‘fieldname’: ‘subnet_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘IP Address’, ‘fieldname’: ‘ip_address’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘router_id’, ‘table-name’: ‘external_fixed_ips’}, ‘fieldname’: ‘external_fixed_ips’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘external_gateway_infos’}
routers_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of router’, ‘selector-type’: ‘DICT_SELECTOR’, ‘parent-col-name’: ‘router_id’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘Network ID’, ‘fieldname’: ‘network_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘current Source NAT status for router’, ‘fieldname’: ‘enable_snat’}, {‘translator’: {‘parent-key-desc’: ‘UUID of router’, ‘parent-col-name’: ‘router_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘UUID of the subnet’, ‘fieldname’: ‘subnet_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘IP Address’, ‘fieldname’: ‘ip_address’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘router_id’, ‘table-name’: ‘external_fixed_ips’}, ‘fieldname’: ‘external_fixed_ips’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘external_gateway_infos’}, ‘fieldname’: ‘external_gateway_info’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘routers’}
security_group_rules_translator = {‘parent-key-desc’: ‘uuid of security group’, ‘parent-col-name’: ‘security_group_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_rules’}
security_group_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘uuid of security group’, ‘parent-col-name’: ‘security_group_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘security_group_rules’}, ‘fieldname’: ‘security_group_rules’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘security_groups’}
subnets_allocation_pools_translator = {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The start address for the allocation pools’, ‘fieldname’: ‘start’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The end address for the allocation pools’, ‘fieldname’: ‘end’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘allocation_pools’}
subnets_dns_nameservers_translator = {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘dns_nameserver’, ‘val-col-desc’: ‘The DNS server’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘dns_nameservers’}
subnets_routes_translator = {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The destination for static route’, ‘fieldname’: ‘destination’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The next hop for the destination’, ‘fieldname’: ‘nexthop’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘host_routes’}
subnets_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘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’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The start address for the allocation pools’, ‘fieldname’: ‘start’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The end address for the allocation pools’, ‘fieldname’: ‘end’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘allocation_pools’}, ‘fieldname’: ‘allocation_pools’}, {‘translator’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘translator’: {‘translation-type’: ‘VALUE’}, ‘val-col’: ‘dns_nameserver’, ‘val-col-desc’: ‘The DNS server’, ‘translation-type’: ‘LIST’, ‘parent-key’: ‘id’, ‘table-name’: ‘dns_nameservers’}, ‘fieldname’: ‘dns_nameservers’}, {‘translator’: {‘parent-key-desc’: ‘UUID of subnet’, ‘parent-col-name’: ‘subnet_id’, ‘in-list’: True, ‘selector-type’: ‘DICT_SELECTOR’, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The destination for static route’, ‘fieldname’: ‘destination’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘desc’: ‘The next hop for the destination’, ‘fieldname’: ‘nexthop’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘host_routes’}, ‘fieldname’: ‘host_routes’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘subnets’}
update_resource_attrs(args)
value_trans = {‘translation-type’: ‘VALUE’}