From bbfba5ce18f50e3c5284b75df99ba2d8b069c46f Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Thu, 29 Apr 2021 14:59:04 -0700 Subject: [firewall_global] port-groups are not added (#143) [firewall_global] port-groups are not added Reviewed-by: https://github.com/apps/ansible-zuul --- .../network/vyos/config/firewall_global/firewall_global.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins') diff --git a/plugins/module_utils/network/vyos/config/firewall_global/firewall_global.py b/plugins/module_utils/network/vyos/config/firewall_global/firewall_global.py index 08b724a..29da3ec 100644 --- a/plugins/module_utils/network/vyos/config/firewall_global/firewall_global.py +++ b/plugins/module_utils/network/vyos/config/firewall_global/firewall_global.py @@ -36,14 +36,9 @@ class Firewall_global(ConfigBase): The vyos_firewall_global class """ - gather_subset = [ - "!all", - "!min", - ] + gather_subset = ["!all", "!min"] - gather_network_resources = [ - "firewall_global", - ] + gather_network_resources = ["firewall_global"] def __init__(self, module): super(Firewall_global, self).__init__(module) @@ -349,7 +344,7 @@ class Firewall_global(ConfigBase): h_grp = h.get("group") or {} if w: commands.extend( - self._render_grp_mem("port-group", w["group"], h_grp, opr) + self._render_grp_mem("port_group", w["group"], h_grp, opr) ) commands.extend( self._render_grp_mem( -- cgit v1.2.3