Skip to content

Commit 0894fec

Browse files
committed
T7260 Remove last firewall group member.
1 parent 41e4b07 commit 0894fec

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
trivial:
3+
- vyos_firewall_global - Fix removing last member of a firewall group.

plugins/module_utils/network/vyos/config/firewall_global/firewall_global.py

+8
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,14 @@ def _render_ports_addrs(self, attr, w, h, opr, cmd, name, type):
438438
+ " "
439439
+ member[self._get_mem_type(type)],
440440
)
441+
elif not opr and not have:
442+
commands.append(
443+
cmd
444+
+ " "
445+
+ name
446+
+ " "
447+
+ self._grp_type(type),
448+
)
441449
return commands
442450

443451
def _get_mem_type(self, group):

0 commit comments

Comments
 (0)