neutron-l3-agent之關鍵資訊
阿新 • • 發佈:2019-01-24
(Pdb) pp routers
[{u'_interfaces': [{u'admin_state_up': True,
u'allowed_address_pairs': [],
u'binding:host_id': u'',
u'binding:profile': {},
u'binding:vif_details': {},
u'binding:vif_type': u'distributed',
u'binding:vnic_type': u'normal',
u'device_id': u'9c2304b2-3c3d-455e-8675-bcccb2834e14',
u'device_owner': u'network:router_interface_distributed',
u'extra_dhcp_opts': [],
u'extra_subnets': [],
u'fixed_ips': [{u'ip_address': u'192.168.1.1',
u'subnet_id': u'7352ee48-dbc8-4060-a770-ac9c175f7557'}],
u'id': u'1d72424c-1081-4185-ab10-d4cb89fb5aa0',
u'mac_address': u'fa:16:3e:71:31:7c',
u'name': u'',
u'network_id': u'3607c99f-dc7a-4082-a15e-cb9f01d96f54',
u'security_groups': [],
u'status': u'DOWN',
u'subnet': {u'cidr': u'192.168.1.0/24',
u'gateway_ip': u'192.168.1.1',
u'id': u'7352ee48-dbc8-4060-a770-ac9c175f7557',
u'ipv6_ra_mode': None},
u'tenant_id': u'9cef00cbfb504af1a62d20579a160a5b'}],
u'_snat_router_interfaces': [{u'admin_state_up': True,
u'allowed_address_pairs': [],
u'binding:host_id': u'',
u'binding:profile': {},
u'binding:vif_details': {},
u'binding:vif_type': u'unbound',
u'binding:vnic_type': u'normal',
u'device_id': u'9c2304b2-3c3d-455e-8675-bcccb2834e14',
u'device_owner': u'network:router_centralized_snat',
u'extra_dhcp_opts': [],
u'extra_subnets': [],
u'fixed_ips': [{u'ip_address': u'192.168.1.5',
u'subnet_id': u'7352ee48-dbc8-4060-a770-ac9c175f7557'}],
u'id': u'6aea2463-07c8-4283-b3fc-b1859ade363b',
u'mac_address': u'fa:16:3e:2d:f8:ea',
u'name': u'',
u'network_id': u'3607c99f-dc7a-4082-a15e-cb9f01d96f54',
u'security_groups': [],
u'status': u'DOWN',
u'subnet': {u'cidr': u'192.168.1.0/24',
u'gateway_ip': u'192.168.1.1',
u'id': u'7352ee48-dbc8-4060-a770-ac9c175f7557',
u'ipv6_ra_mode': None},
u'tenant_id': u''}],
u'admin_state_up': True,
u'distributed': True,
u'enable_snat': True,
u'external_gateway_info': {u'enable_snat': True,
u'external_fixed_ips': [{u'ip_address': u'10.10.0.3',
u'subnet_id': u'3173bd8a-e8b1-40a0-86e0-dd923ac515ec'}],
u'network_id': u'af22d26e-c971-4e66-9f4b-3168441e6b1e'},
u'gw_port': {u'admin_state_up': True,
u'allowed_address_pairs': [],
u'binding:host_id': u'',
u'binding:profile': {},
u'binding:vif_details': {},
u'binding:vif_type': u'unbound',
u'binding:vnic_type': u'normal',
u'device_id': u'9c2304b2-3c3d-455e-8675-bcccb2834e14',
u'device_owner': u'network:router_gateway',
u'extra_dhcp_opts': [],
u'extra_subnets': [],
u'fixed_ips': [{u'ip_address': u'10.10.0.3',
u'subnet_id': u'3173bd8a-e8b1-40a0-86e0-dd923ac515ec'}],
u'id': u'4f703b88-3e09-4d41-8575-e3c6de1c58c1',
u'mac_address': u'fa:16:3e:7d:0f:44',
u'name': u'',
u'network_id': u'af22d26e-c971-4e66-9f4b-3168441e6b1e',
u'security_groups': [],
u'status': u'DOWN',
u'subnet': {u'cidr': u'10.10.0.0/24',
u'gateway_ip': u'10.10.0.1',
u'id': u'3173bd8a-e8b1-40a0-86e0-dd923ac515ec',
u'ipv6_ra_mode': None},
u'tenant_id': u''},
u'gw_port_host': u'openstack',
u'gw_port_id': u'4f703b88-3e09-4d41-8575-e3c6de1c58c1',
u'ha': False,
u'ha_vr_id': 0,
u'id': u'9c2304b2-3c3d-455e-8675-bcccb2834e14',
u'name': u'router1',
u'routes': [],
u'status': u'ACTIVE',
u'tenant_id': u'9cef00cbfb504af1a62d20579a160a5b'}]