Skip to content

Commit 347f8a5

Browse files
VR: fix source cidr of egress rules are not applied (#5143)
This reverts change in commit 065fa1c#diff-c78f7f699938cf529cbcef26bda2ed93630b58f336986fd0753fbfa1a6adbc43L103-R103
1 parent 53c2e19 commit 347f8a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systemvm/debian/opt/cloud/bin/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(self, obj, fw):
111111
self.rule['allowed'] = True
112112
self.rule['action'] = "ACCEPT"
113113

114-
if self.rule['type'] == 'all' and obj['source_cidr_list']:
114+
if self.rule['type'] == 'all' and not obj['source_cidr_list']:
115115
self.rule['cidr'] = []
116116
else:
117117
self.rule['cidr'] = obj['source_cidr_list']

0 commit comments

Comments
 (0)