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 f2301fd2..66a55f2c 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 @@ -99,13 +99,13 @@ class Route_mapsArgs(object): # pylint: disable=R0903 }, }, "local_preference": { - "type": "list", - "elements": "dict", - "options": { - "multiply": {"type": "bool"}, - "increment": {"type": "bool"}, - "decrement": {"type": "bool"}, - "local_preference_number": {"type": "int"} + "type": "list", + "elements": "dict", + "options": { + "multiply": {"type": "bool"}, + "increment": {"type": "bool"}, + "decrement": {"type": "bool"}, + "local_preference_number": {"type": "int"}, }, }, "attribute_set": {"type": "str"}, 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 a9f75e94..85654447 100644 --- a/plugins/module_utils/network/iosxr/rm_templates/route_maps.py +++ b/plugins/module_utils/network/iosxr/rm_templates/route_maps.py @@ -253,11 +253,11 @@ def __init__(self, lines=None, module=None): "local_preference_number": "{{ local_preference_number}}", "decrement":"{{ not not decrement }}", "multiply":"{{ not not multiply }}", - } - ] - } - } - } + }, + ], + }, + }, + }, }, { "name": "set.aigp_metric", 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 f73e26ab..d1f24d2b 100644 --- a/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py +++ b/tests/unit/modules/network/iosxr/test_iosxr_route_maps.py @@ -1300,10 +1300,12 @@ def test_iosxr_route_maps_parsed_local_pref_variants(self): "global": { "set": { "ospf_metric": 232, - "local_preference":[{'increment': True, 'local_preference_number': 100}, - {'decrement': True,'local_preference_number': 200}, - {"multiply": True , "local_preference_number": 600}, - {"increment": True ,"local_preference_number": 900}], + "local_preference": [ + {"increment": True, "local_preference_number": 100}, + {"decrement": True, "local_preference_number": 200}, + {"multiply": True, "local_preference_number": 600}, + {"increment": True, "local_preference_number": 900}, + ], }, }, },