2020-- ;
2121
2222UPDATE ` cloud` .` configuration` SET ` value` = ' false' WHERE ` name` = ' network.disable.rpfilter' AND ` value` != ' true' ;
23- UPDATE ` cloud` .` configuration` SET ` value` = ' false' WHERE ` name` = ' consoleproxy.disable.rpfilter' AND ` value` != ' true' ;
23+ UPDATE ` cloud` .` configuration` SET ` value` = ' false' WHERE ` name` = ' consoleproxy.disable.rpfilter' AND ` value` != ' true' ;
24+
25+ -- Retrieve the hypervisor_type from vm_instance
26+ DROP VIEW IF EXISTS ` cloud` .` domain_router_view` ;
27+ CREATE VIEW `cloud `.` domain_router_view` AS
28+ select
29+ vm_instance .id id,
30+ vm_instance .name name,
31+ account .id account_id,
32+ account .uuid account_uuid,
33+ account .account_name account_name,
34+ account .type account_type,
35+ domain .id domain_id,
36+ domain .uuid domain_uuid,
37+ domain .name domain_name,
38+ domain .path domain_path,
39+ projects .id project_id,
40+ projects .uuid project_uuid,
41+ projects .name project_name,
42+ vm_instance .uuid uuid,
43+ vm_instance .created created,
44+ vm_instance .state state,
45+ vm_instance .removed removed,
46+ vm_instance .pod_id pod_id,
47+ vm_instance .instance_name instance_name,
48+ vm_instance .hypervisor_type ,
49+ host_pod_ref .uuid pod_uuid,
50+ data_center .id data_center_id,
51+ data_center .uuid data_center_uuid,
52+ data_center .name data_center_name,
53+ data_center .networktype data_center_type,
54+ data_center .dns1 dns1,
55+ data_center .dns2 dns2,
56+ data_center .ip6_dns1 ip6_dns1,
57+ data_center .ip6_dns2 ip6_dns2,
58+ host .id host_id,
59+ host .uuid host_uuid,
60+ host .name host_name,
61+ host .cluster_id cluster_id,
62+ vm_template .id template_id,
63+ vm_template .uuid template_uuid,
64+ service_offering .id service_offering_id,
65+ service_offering .uuid service_offering_uuid,
66+ service_offering .name service_offering_name,
67+ nics .id nic_id,
68+ nics .uuid nic_uuid,
69+ nics .network_id network_id,
70+ nics .ip4_address ip_address,
71+ nics .ip6_address ip6_address,
72+ nics .ip6_gateway ip6_gateway,
73+ nics .ip6_cidr ip6_cidr,
74+ nics .default_nic is_default_nic,
75+ nics .gateway gateway,
76+ nics .netmask netmask,
77+ nics .mac_address mac_address,
78+ nics .broadcast_uri broadcast_uri,
79+ nics .isolation_uri isolation_uri,
80+ vpc .id vpc_id,
81+ vpc .uuid vpc_uuid,
82+ vpc .name vpc_name,
83+ networks .uuid network_uuid,
84+ networks .name network_name,
85+ networks .network_domain network_domain,
86+ networks .traffic_type traffic_type,
87+ networks .guest_type guest_type,
88+ async_job .id job_id,
89+ async_job .uuid job_uuid,
90+ async_job .job_status job_status,
91+ async_job .account_id job_account_id,
92+ domain_router .template_version template_version,
93+ domain_router .scripts_version scripts_version,
94+ domain_router .is_redundant_router is_redundant_router,
95+ domain_router .redundant_state redundant_state,
96+ domain_router .stop_pending stop_pending,
97+ domain_router .role role,
98+ domain_router .software_version software_version
99+ from
100+ ` cloud` .` domain_router`
101+ inner join
102+ ` cloud` .` vm_instance` ON vm_instance .id = domain_router .id
103+ inner join
104+ ` cloud` .` account` ON vm_instance .account_id = account .id
105+ inner join
106+ ` cloud` .` domain` ON vm_instance .domain_id = domain .id
107+ left join
108+ ` cloud` .` host_pod_ref` ON vm_instance .pod_id = host_pod_ref .id
109+ left join
110+ ` cloud` .` projects` ON projects .project_account_id = account .id
111+ left join
112+ ` cloud` .` data_center` ON vm_instance .data_center_id = data_center .id
113+ left join
114+ ` cloud` .` host` ON vm_instance .host_id = host .id
115+ left join
116+ ` cloud` .` vm_template` ON vm_instance .vm_template_id = vm_template .id
117+ left join
118+ ` cloud` .` service_offering` ON vm_instance .service_offering_id = service_offering .id
119+ left join
120+ ` cloud` .` nics` ON vm_instance .id = nics .instance_id and nics .removed is null
121+ left join
122+ ` cloud` .` networks` ON nics .network_id = networks .id
123+ left join
124+ ` cloud` .` vpc` ON domain_router .vpc_id = vpc .id and vpc .removed is null
125+ left join
126+ ` cloud` .` async_job` ON async_job .instance_id = vm_instance .id
127+ and async_job .instance_type = ' DomainRouter'
128+ and async_job .job_status = 0 ;
0 commit comments