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

Overwrite ExecutionDriver.execute().

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