opennebula-4.12.1-nospoofevenwithnosgs.diff
opennebula-4.12.1-nospoofevenwithnosgs/src/vnm_mad/remotes/lib/sg_driver.rb 2015-12-21 16:22:22.561530232 -0600 | ||
---|---|---|
59 | 59 | |
60 | 60 |
# Process the rules |
61 | 61 |
@vm.nics.each do |nic| |
62 |
next if nic[:security_groups].nil? |
|
62 |
if nic[:security_groups].nil? |
|
63 |
# If the NIC has no security groups applied, apply security group 0 |
|
64 |
nic[:security_groups] = "0" |
|
65 |
end |
|
63 | 66 | |
64 | 67 |
SGIPTables.nic_pre(@vm, nic) |
65 | 68 |