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 22, 2024
1 parent c76faba commit 6feb216
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -557,7 +557,6 @@ class Route_mapsArgs(object): # pylint: disable=R0903
"type": "dict",
"options": {
"administrative_distance": {"type": "int"},

"aigp_metric": {
"type": "dict",
"options": {
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/network/iosxr/rm_templates/route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ def __init__(self, lines=None, module=None):
},
},
},

{
"name": "set.local_preference",
"getval": re.compile(
Expand All @@ -1184,7 +1184,7 @@ def __init__(self, lines=None, module=None):
},
},
},


]
# fmt: on
16 changes: 6 additions & 10 deletions tests/unit/modules/network/iosxr/test_iosxr_route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
""",
),
Expand All @@ -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"])

0 comments on commit 6feb216

Please sign in to comment.