diff --git a/plugins/module_utils/network/iosxr/argspec/route_maps/route_maps.py b/plugins/module_utils/network/iosxr/argspec/route_maps/route_maps.py index ce1c4bc7..a269785f 100644 --- a/plugins/module_utils/network/iosxr/argspec/route_maps/route_maps.py +++ b/plugins/module_utils/network/iosxr/argspec/route_maps/route_maps.py @@ -89,7 +89,7 @@ class Route_mapsArgs(object): # pylint: disable=R0903 "type": "dict", "options": { "administrative_distance": {"type": "int"}, - "local-preference":{"type":"int"}, + "local-preference": {"type": "int"}, "aigp_metric": { "type": "dict", "options": { @@ -557,7 +557,6 @@ class Route_mapsArgs(object): # pylint: disable=R0903 "type": "dict", "options": { "administrative_distance": {"type": "int"}, - "aigp_metric": { "type": "dict", "options": { diff --git a/plugins/module_utils/network/iosxr/rm_templates/route_maps.py b/plugins/module_utils/network/iosxr/rm_templates/route_maps.py index 73a788e6..d0b99870 100644 --- a/plugins/module_utils/network/iosxr/rm_templates/route_maps.py +++ b/plugins/module_utils/network/iosxr/rm_templates/route_maps.py @@ -1166,7 +1166,7 @@ def __init__(self, lines=None, module=None): }, }, }, - + { "name": "set.local_preference", "getval": re.compile( @@ -1184,7 +1184,7 @@ def __init__(self, lines=None, module=None): }, }, }, - - + + ] # fmt: on diff --git a/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py b/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py index 92236a0e..ff8c0ab8 100644 --- a/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py +++ b/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py @@ -1286,7 +1286,7 @@ def test_aayush_iosxr_route_maps_parsed(self): set ospf-metric 232 set local-preference 200 prepend as-path most-recent 22 - + end-policy """, ), @@ -1297,16 +1297,12 @@ def test_aayush_iosxr_route_maps_parsed(self): parsed_list = [ { "name": "APPLY_TEST_ROUTE_POLICY_COMPLEX", - "global": { - "set": { - "ospf_metric": 232, - "local-preference": 200, - - - }, - } - + "set": { + "ospf_metric": 232, + "local-preference": 200, + }, + }, }, ] self.assertEqual(parsed_list, result["parsed"])