1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Fix ipam for AWS on centos7 (#577)

This commit is contained in:
Jan Orel 2020-12-20 23:28:02 +01:00 committed by GitHub
parent 4682a50a31
commit 746db18a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ begin
end
cidr_s = data.xpath('//AR/CIDR').text
mask = cidr_s.split('/')[1]
if cidr_s.empty?
STDERR.puts 'Missing CIDR block in address range'
@ -125,7 +126,7 @@ begin
cidr = IPAddr.new(cidr_s)
if cidr.prefix != 16
if ! ['255.255.0.0', '16'].include? mask
STDERR.puts 'Elastic CIDR block has to be /16'
exit(-1)
end