From 1b974daf2759f13fba929bb5bdd7f8568c1df024 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 10 Feb 2017 18:54:08 +0100 Subject: [PATCH] B #5017: fix problem with mixed networks --- src/vnm_mad/remotes/lib/security_groups.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vnm_mad/remotes/lib/security_groups.rb b/src/vnm_mad/remotes/lib/security_groups.rb index c11bf338c6..aac7552afc 100644 --- a/src/vnm_mad/remotes/lib/security_groups.rb +++ b/src/vnm_mad/remotes/lib/security_groups.rb @@ -114,9 +114,13 @@ module VNMNetwork if @ip && @size nets += VNMNetwork::to_nets(@ip, @size.to_i) - elsif @ip6_global && @size + end + + if @ip6_global && @size nets += VNMNetwork::to_nets(@ip6_global, @size.to_i) - elsif @ip6_ula && @size + end + + if @ip6_ula && @size nets += VNMNetwork::to_nets(@ip6_ula, @size.to_i) end