mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
VR: fix source cidr of egress rules are not applied (#5143)
This reverts change in commit
065fa1c849 (diff-c78f7f699938cf529cbcef26bda2ed93630b58f336986fd0753fbfa1a6adbc43L103-R103)
This commit is contained in:
parent
53c2e19d5f
commit
347f8a5a73
@ -111,7 +111,7 @@ class CsAcl(CsDataBag):
|
||||
self.rule['allowed'] = True
|
||||
self.rule['action'] = "ACCEPT"
|
||||
|
||||
if self.rule['type'] == 'all' and obj['source_cidr_list']:
|
||||
if self.rule['type'] == 'all' and not obj['source_cidr_list']:
|
||||
self.rule['cidr'] = []
|
||||
else:
|
||||
self.rule['cidr'] = obj['source_cidr_list']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user