Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2024
1 parent 5341d0b commit d6c92ec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
10 changes: 5 additions & 5 deletions plugins/module_utils/network/iosxr/rm_templates/route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 6 additions & 4 deletions tests/unit/modules/network/iosxr/test_iosxr_route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
],
},
},
},
Expand Down

0 comments on commit d6c92ec

Please sign in to comment.