Skip to content

Commit f6d618b

Browse files
jeanjean
authored andcommitted
Sanitize legacy network-level addressing fields for Public networks
1 parent 1a22d35 commit f6d618b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

engine/schema/src/main/resources/META-INF/db/schema-42200to42210.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,12 @@ UPDATE `cloud`.`alert` SET type = 34 WHERE name = 'ALERT.VR.PRIVATE.IFACE.MTU';
3333

3434
-- Update configuration 'kvm.ssh.to.agent' description and is_dynamic fields
3535
UPDATE `cloud`.`configuration` SET description = 'True if the management server will restart the agent service via SSH into the KVM hosts after or during maintenance operations', is_dynamic = 1 WHERE name = 'kvm.ssh.to.agent';
36+
37+
-- Sanitize legacy network-level addressing fields for Public networks
38+
UPDATE `cloud`.`networks`
39+
SET `broadcast_uri` = NULL,
40+
`gateway` = NULL,
41+
`cidr` = NULL,
42+
`ip6_gateway` = NULL,
43+
`ip6_cidr` = NULL
44+
WHERE `traffic_type` = 'Public';

0 commit comments

Comments
 (0)