Skip to content

Commit

Permalink
cms/openstack: Fix port group reference in acls.
Browse files Browse the repository at this point in the history
The current code refer to a portgroup named $pg_pg... which is
not correct.

Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
  • Loading branch information
fnordahl committed Oct 31, 2023
1 parent 5466797 commit f1312a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovn-tester/cms/openstack/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ def _create_default_security_group(self) -> PortGroup:
f"inport == @{pg_name} && ip6",
]
out_rules = [
f"outport == @{pg_name} && ip4 && ip4.src == $pg_{pg_name}_ip4",
f"outport == @{pg_name} && ip6 && ip6.src == $pg_{pg_name}_ip6",
f"outport == @{pg_name} && ip4 && ip4.src == ${pg_name}_ip4",
f"outport == @{pg_name} && ip6 && ip6.src == ${pg_name}_ip6",
]

for rule in in_rules:
Expand Down

0 comments on commit f1312a1

Please sign in to comment.