From bead8ad6c53d51d3188ea1d6c2e5599fa5104395 Mon Sep 17 00:00:00 2001 From: NilashishC Date: Tue, 23 Jan 2024 15:22:33 +0530 Subject: [PATCH] Fixes module_defaults being incorrectly applied to platform actions Signed-off-by: NilashishC --- changelogs/fragments/module_defaults.yaml | 3 ++ meta/runtime.yml | 31 +++++++++++++++++++ plugins/action/acl_interfaces.py | 1 - plugins/action/acls.py | 1 - plugins/action/banner.py | 1 - plugins/action/bgp.py | 1 - plugins/action/bgp_address_family.py | 1 - plugins/action/bgp_global.py | 1 - plugins/action/bgp_neighbor_address_family.py | 1 - plugins/action/command.py | 1 - plugins/action/config.py | 1 - plugins/action/facts.py | 1 - plugins/action/hostname.py | 1 - plugins/action/interface.py | 1 - plugins/action/interfaces.py | 1 - plugins/action/l2_interfaces.py | 1 - plugins/action/l3_interfaces.py | 1 - plugins/action/lacp.py | 1 - plugins/action/lacp_interfaces.py | 1 - plugins/action/lag_interfaces.py | 1 - plugins/action/lldp_global.py | 1 - plugins/action/lldp_interfaces.py | 1 - plugins/action/logging.py | 1 - plugins/action/logging_global.py | 1 - plugins/action/netconf.py | 1 - plugins/action/ntp_global.py | 1 - plugins/action/ospf_interfaces.py | 1 - plugins/action/ospfv2.py | 1 - plugins/action/ospfv3.py | 1 - plugins/action/prefix_lists.py | 1 - plugins/action/snmp_server.py | 1 - plugins/action/static_routes.py | 1 - plugins/action/system.py | 1 - plugins/action/user.py | 1 - 34 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 changelogs/fragments/module_defaults.yaml delete mode 120000 plugins/action/acl_interfaces.py delete mode 120000 plugins/action/acls.py delete mode 120000 plugins/action/banner.py delete mode 120000 plugins/action/bgp.py delete mode 120000 plugins/action/bgp_address_family.py delete mode 120000 plugins/action/bgp_global.py delete mode 120000 plugins/action/bgp_neighbor_address_family.py delete mode 120000 plugins/action/command.py delete mode 120000 plugins/action/config.py delete mode 120000 plugins/action/facts.py delete mode 120000 plugins/action/hostname.py delete mode 120000 plugins/action/interface.py delete mode 120000 plugins/action/interfaces.py delete mode 120000 plugins/action/l2_interfaces.py delete mode 120000 plugins/action/l3_interfaces.py delete mode 120000 plugins/action/lacp.py delete mode 120000 plugins/action/lacp_interfaces.py delete mode 120000 plugins/action/lag_interfaces.py delete mode 120000 plugins/action/lldp_global.py delete mode 120000 plugins/action/lldp_interfaces.py delete mode 120000 plugins/action/logging.py delete mode 120000 plugins/action/logging_global.py delete mode 120000 plugins/action/netconf.py delete mode 120000 plugins/action/ntp_global.py delete mode 120000 plugins/action/ospf_interfaces.py delete mode 120000 plugins/action/ospfv2.py delete mode 120000 plugins/action/ospfv3.py delete mode 120000 plugins/action/prefix_lists.py delete mode 120000 plugins/action/snmp_server.py delete mode 120000 plugins/action/static_routes.py delete mode 120000 plugins/action/system.py delete mode 120000 plugins/action/user.py diff --git a/changelogs/fragments/module_defaults.yaml b/changelogs/fragments/module_defaults.yaml new file mode 100644 index 000000000..f1a4bad89 --- /dev/null +++ b/changelogs/fragments/module_defaults.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: + - Prevents module_defaults from were being incorrectly applied to the platform action, instead of the concerned module. diff --git a/meta/runtime.yml b/meta/runtime.yml index eb381faa7..19dc52a56 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -4,68 +4,99 @@ plugin_routing: modules: acl_interfaces: redirect: cisco.iosxr.iosxr_acl_interfaces + action_plugin: cisco.iosxr.iosxr acls: redirect: cisco.iosxr.iosxr_acls + action_plugin: cisco.iosxr.iosxr banner: redirect: cisco.iosxr.iosxr_banner + action_plugin: cisco.iosxr.iosxr command: redirect: cisco.iosxr.iosxr_command + action_plugin: cisco.iosxr.iosxr config: redirect: cisco.iosxr.iosxr_config + action_plugin: cisco.iosxr.iosxr facts: redirect: cisco.iosxr.iosxr_facts + action_plugin: cisco.iosxr.iosxr interfaces: redirect: cisco.iosxr.iosxr_interfaces + action_plugin: cisco.iosxr.iosxr l2_interfaces: redirect: cisco.iosxr.iosxr_l2_interfaces + action_plugin: cisco.iosxr.iosxr l3_interfaces: redirect: cisco.iosxr.iosxr_l3_interfaces + action_plugin: cisco.iosxr.iosxr lacp: redirect: cisco.iosxr.iosxr_lacp + action_plugin: cisco.iosxr.iosxr lacp_interfaces: redirect: cisco.iosxr.iosxr_lacp_interfaces + action_plugin: cisco.iosxr.iosxr lag_interfaces: redirect: cisco.iosxr.iosxr_lag_interfaces + action_plugin: cisco.iosxr.iosxr lldp_global: redirect: cisco.iosxr.iosxr_lldp_global + action_plugin: cisco.iosxr.iosxr lldp_interfaces: redirect: cisco.iosxr.iosxr_lldp_interfaces + action_plugin: cisco.iosxr.iosxr logging: redirect: cisco.iosxr.iosxr_logging deprecation: removal_date: "2023-08-01" warning_text: See the plugin documentation for more details + action_plugin: cisco.iosxr.iosxr iosxr_logging: deprecation: removal_date: "2023-08-01" warning_text: See the plugin documentation for more details + action_plugin: cisco.iosxr.iosxr logging_global: redirect: cisco.iosxr.iosxr_logging_global + action_plugin: cisco.iosxr.iosxr netconf: redirect: cisco.iosxr.iosxr_netconf + action_plugin: cisco.iosxr.iosxr ospfv2: redirect: cisco.iosxr.iosxr_ospfv2 + action_plugin: cisco.iosxr.iosxr ospfv3: redirect: cisco.iosxr.iosxr_ospfv3 + action_plugin: cisco.iosxr.iosxr ospf_interfaces: redirect: cisco.iosxr.iosxr_ospf_interfaces + action_plugin: cisco.iosxr.iosxr static_routes: redirect: cisco.iosxr.iosxr_static_routes + action_plugin: cisco.iosxr.iosxr system: redirect: cisco.iosxr.iosxr_system + action_plugin: cisco.iosxr.iosxr user: redirect: cisco.iosxr.iosxr_user + action_plugin: cisco.iosxr.iosxr bgp_neighbor_address_family: redirect: cisco.iosxr.iosxr_bgp_neighbor_address_family + action_plugin: cisco.iosxr.iosxr bgp_address_family: redirect: cisco.iosxr.iosxr_bgp_address_family + action_plugin: cisco.iosxr.iosxr bgp_global: redirect: cisco.iosxr.iosxr_bgp_global + action_plugin: cisco.iosxr.iosxr prefix_lists: redirect: cisco.iosxr.iosxr_prefix_lists + action_plugin: cisco.iosxr.iosxr ntp_global: redirect: cisco.iosxr.iosxr_ntp_global + action_plugin: cisco.iosxr.iosxr snmp_server: redirect: cisco.iosxr.iosxr_snmp_server + action_plugin: cisco.iosxr.iosxr hostname: redirect: cisco.iosxr.iosxr_hostname + action_plugin: cisco.iosxr.iosxr diff --git a/plugins/action/acl_interfaces.py b/plugins/action/acl_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/acl_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/acls.py b/plugins/action/acls.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/acls.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/banner.py b/plugins/action/banner.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/banner.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/bgp.py b/plugins/action/bgp.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/bgp.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/bgp_address_family.py b/plugins/action/bgp_address_family.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/bgp_address_family.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/bgp_global.py b/plugins/action/bgp_global.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/bgp_global.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/bgp_neighbor_address_family.py b/plugins/action/bgp_neighbor_address_family.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/bgp_neighbor_address_family.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/command.py b/plugins/action/command.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/command.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/config.py b/plugins/action/config.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/config.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/facts.py b/plugins/action/facts.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/facts.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/hostname.py b/plugins/action/hostname.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/hostname.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/interface.py b/plugins/action/interface.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/interface.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/interfaces.py b/plugins/action/interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/l2_interfaces.py b/plugins/action/l2_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/l2_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/l3_interfaces.py b/plugins/action/l3_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/l3_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/lacp.py b/plugins/action/lacp.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/lacp.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/lacp_interfaces.py b/plugins/action/lacp_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/lacp_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/lag_interfaces.py b/plugins/action/lag_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/lag_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/lldp_global.py b/plugins/action/lldp_global.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/lldp_global.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/lldp_interfaces.py b/plugins/action/lldp_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/lldp_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/logging.py b/plugins/action/logging.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/logging.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/logging_global.py b/plugins/action/logging_global.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/logging_global.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/netconf.py b/plugins/action/netconf.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/netconf.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/ntp_global.py b/plugins/action/ntp_global.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/ntp_global.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/ospf_interfaces.py b/plugins/action/ospf_interfaces.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/ospf_interfaces.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/ospfv2.py b/plugins/action/ospfv2.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/ospfv2.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/ospfv3.py b/plugins/action/ospfv3.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/ospfv3.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/prefix_lists.py b/plugins/action/prefix_lists.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/prefix_lists.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/snmp_server.py b/plugins/action/snmp_server.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/snmp_server.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/static_routes.py b/plugins/action/static_routes.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/static_routes.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/system.py b/plugins/action/system.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/system.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file diff --git a/plugins/action/user.py b/plugins/action/user.py deleted file mode 120000 index 4f317eb5d..000000000 --- a/plugins/action/user.py +++ /dev/null @@ -1 +0,0 @@ -iosxr.py \ No newline at end of file