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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'Network ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'Network name'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'Network status'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'Administrative state of the network (true/false)'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'port name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'UUID of attached network'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'mac_address', 'desc': 'MAC address of the port'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'Administrative state of the port'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'Port status'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'device_id', 'desc': 'The ID of the device that uses this port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'device_owner', 'desc': 'The entity type that uses this port.E.g., compute:nova, network:router_interface'}, {'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': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_address', 'desc': 'The IP addresses for the port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of subnet'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'subnet name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'UUID of attached network'}, {'translator': {'data-type': <class 'congress.data_types.IPv4IPv6'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_version', 'desc': 'The IP version, which is 4 or 6'}, {'translator': {'data-type': <class 'congress.data_types.IPNetwork'>, 'translation-type': 'VALUE'}, 'fieldname': 'cidr', 'desc': 'The CIDR'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'gateway_ip', 'desc': 'The gateway IP address'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'enable_dhcp', 'desc': 'Is DHCP is enabled or not'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'ipv6_ra_mode', 'desc': 'The IPv6 RA mode'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'start', 'desc': 'The start address for the allocation pools'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'destination', 'desc': 'The destination for static route'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'uuid of the router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'router status'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'administrative state of router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'router name'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'Network ID'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'subnet_id', 'desc': 'UUID of the subnet'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the security group'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'The security group name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID of the security group rule'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'remote_group_id', 'desc': 'remote group id to associate with security group rule'}, {'translator': {'data-type': <class 'congress.data_types.IngressEgress'>, 'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'Direction in which the security group rule is applied'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'ethertype', 'desc': 'IPv4 or IPv6'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'protocol', 'desc': 'protocol that is matched by the security group rule.'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_min', 'desc': 'Min port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_max', 'desc': 'Max port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID of the floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'router_id', 'desc': 'UUID of router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'floating_network_id', 'desc': 'The UUID of the network associated with floating IP'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'fixed_ip_address', 'desc': 'Fixed IP address associated with floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'floating_ip_address', 'desc': 'The floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_id', 'desc': 'UUID of port'}, {'translator': {'data-type': <class 'congress.data_types.FloatingIPStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'The floating IP status'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]¶attach_port_security_group
(args)¶detach_port_security_group
(args)¶execute
(action, action_args)¶Overwrite ExecutionDriver.execute().
external_fixed_ips_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'subnet_id', 'desc': 'UUID of the subnet'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_address', 'desc': 'IP Address'}), 'in-list': True, 'parent-col-name': 'router_id', 'parent-key': 'router_id', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_fixed_ips', 'translation-type': 'HDICT'}¶floating_ips_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID of the floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'router_id', 'desc': 'UUID of router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'floating_network_id', 'desc': 'The UUID of the network associated with floating IP'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'fixed_ip_address', 'desc': 'Fixed IP address associated with floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'floating_ip_address', 'desc': 'The floating IP address'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_id', 'desc': 'UUID of port'}, {'translator': {'data-type': <class 'congress.data_types.FloatingIPStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'The floating IP status'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'floating_ips', 'translation-type': 'HDICT'}¶get_datasource_info
()¶initialize_update_methods
()¶networks_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'Network ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'Network name'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'Network status'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'Administrative state of the network (true/false)'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'shared', 'desc': 'Indicates if network is shared across all tenants'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'networks', 'translation-type': 'HDICT'}¶ports_fixed_ips_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_address', 'desc': 'The IP addresses for the port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'subnet_id', 'desc': 'The UUID of the subnet to which the port is attached'}), 'in-list': True, 'parent-col-name': 'port_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of Port', 'selector-type': 'DICT_SELECTOR', 'table-name': 'fixed_ips', 'translation-type': 'HDICT'}¶ports_security_groups_translator
= {'parent-col-name': 'port_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of port', 'table-name': 'security_group_port_bindings', 'translation-type': 'LIST', 'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'val-col': 'security_group_id', 'val-col-desc': 'UUID of security group'}¶ports_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'port name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'UUID of attached network'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'mac_address', 'desc': 'MAC address of the port'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'Administrative state of the port'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'Port status'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'device_id', 'desc': 'The ID of the device that uses this port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'device_owner', 'desc': 'The entity type that uses this port.E.g., compute:nova, network:router_interface'}, {'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': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_address', 'desc': 'The IP addresses for the port'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, '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', 'table-name': 'ports', 'translation-type': 'HDICT'}¶routers_external_gateway_infos_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'Network ID'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'subnet_id', 'desc': 'UUID of the subnet'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_address', 'desc': 'IP Address'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, 'fieldname': 'external_fixed_ips'}), 'parent-col-name': 'router_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of router', 'selector-type': 'DICT_SELECTOR', 'table-name': 'external_gateway_infos', 'translation-type': 'HDICT'}¶routers_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'uuid of the router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.NeutronStatus'>, 'translation-type': 'VALUE'}, 'fieldname': 'status', 'desc': 'router status'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'admin_state_up', 'desc': 'administrative state of router'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'router name'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'Network ID'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'subnet_id', 'desc': 'UUID of the subnet'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, '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', 'table-name': 'routers', 'translation-type': 'HDICT'}¶security_group_rules_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID of the security group rule'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'remote_group_id', 'desc': 'remote group id to associate with security group rule'}, {'translator': {'data-type': <class 'congress.data_types.IngressEgress'>, 'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'Direction in which the security group rule is applied'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'ethertype', 'desc': 'IPv4 or IPv6'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'protocol', 'desc': 'protocol that is matched by the security group rule.'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_min', 'desc': 'Min port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_max', 'desc': 'Max port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'remote_ip_prefix', 'desc': 'Remote IP prefix to be associated'}), 'in-list': True, 'parent-col-name': 'security_group_id', 'parent-key': 'id', 'parent-key-desc': 'uuid of security group', 'selector-type': 'DICT_SELECTOR', 'table-name': 'security_group_rules', 'translation-type': 'HDICT'}¶security_group_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the security group'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'The security group name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID of the security group rule'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'remote_group_id', 'desc': 'remote group id to associate with security group rule'}, {'translator': {'data-type': <class 'congress.data_types.IngressEgress'>, 'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'Direction in which the security group rule is applied'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'ethertype', 'desc': 'IPv4 or IPv6'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'protocol', 'desc': 'protocol that is matched by the security group rule.'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_min', 'desc': 'Min port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}, 'fieldname': 'port_range_max', 'desc': 'Max port number in the range'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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', 'table-name': 'security_groups', 'translation-type': 'HDICT'}¶subnets_allocation_pools_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'start', 'desc': 'The start address for the allocation pools'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'end', 'desc': 'The end address for the allocation pools'}), 'in-list': True, 'parent-col-name': 'subnet_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'allocation_pools', 'translation-type': 'HDICT'}¶subnets_dns_nameservers_translator
= {'parent-col-name': 'subnet_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of subnet', 'table-name': 'dns_nameservers', 'translation-type': 'LIST', 'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'val-col': 'dns_nameserver', 'val-col-desc': 'The DNS server'}¶subnets_routes_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'destination', 'desc': 'The destination for static route'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'nexthop', 'desc': 'The next hop for the destination'}), 'in-list': True, 'parent-col-name': 'subnet_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of subnet', 'selector-type': 'DICT_SELECTOR', 'table-name': 'host_routes', 'translation-type': 'HDICT'}¶subnets_translator
= {'field-translators': ({'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of subnet'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'tenant ID'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'subnet name'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'network_id', 'desc': 'UUID of attached network'}, {'translator': {'data-type': <class 'congress.data_types.IPv4IPv6'>, 'translation-type': 'VALUE'}, 'fieldname': 'ip_version', 'desc': 'The IP version, which is 4 or 6'}, {'translator': {'data-type': <class 'congress.data_types.IPNetwork'>, 'translation-type': 'VALUE'}, 'fieldname': 'cidr', 'desc': 'The CIDR'}, {'translator': {'data-type': <class 'congress.data_types.IPAddress'>, 'translation-type': 'VALUE'}, 'fieldname': 'gateway_ip', 'desc': 'The gateway IP address'}, {'translator': {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}, 'fieldname': 'enable_dhcp', 'desc': 'Is DHCP is enabled or not'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'ipv6_ra_mode', 'desc': 'The IPv6 RA mode'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'start', 'desc': 'The start address for the allocation pools'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, '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': {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}, 'fieldname': 'destination', 'desc': 'The destination for static route'}, {'translator': {'data-type': <class 'congress.data_types.Str'>, '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', 'table-name': 'subnets', 'translation-type': 'HDICT'}¶update_resource_attrs
(args)¶value_trans_bool
= {'data-type': <class 'congress.data_types.Bool'>, 'translation-type': 'VALUE'}¶value_trans_int
= {'data-type': <class 'congress.data_types.Int'>, 'translation-type': 'VALUE'}¶value_trans_str
= {'data-type': <class 'congress.data_types.Str'>, 'translation-type': 'VALUE'}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.