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 fbdde44 commit a078c30
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, lines=None, module=None):
"local_preference": "{{ local_preference }}",
},
},
}
},
},
{
"name": "set.aigp_metric",
Expand Down
32 changes: 15 additions & 17 deletions tests/unit/modules/network/iosxr/test_iosxr_route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,27 +1277,25 @@ def test_iosxr_route_maps_parsed(self):
]
self.assertEqual(parsed_list, result["parsed"])



def test_aayush_iosxr_route_maps_parsed(self):
set_module_args(
dict(
running_config=dedent(
"""\
set_module_args(
dict(
running_config=dedent(
"""\
route-policy APPLY_TEST_ROUTE_POLICY_COMPLEX
set ospf-metric 232
set local-preference 100
prepend as-path most-recent 22
""",
),
state="parsed",
),
)
result = self.execute_module(changed=False)
parsed_list = [
{
"name": "APPLY_TEST_ROUTE_POLICY_COMPLEX",
"global": {"set": {"ospf_metric": 232,"local_preference":"100"}},
},
]
self.assertEqual(parsed_list, result["parsed"])
state="parsed",
),
)
result = self.execute_module(changed=False)
parsed_list = [
{
"name": "APPLY_TEST_ROUTE_POLICY_COMPLEX",
"global": {"set": {"ospf_metric": 232, "local_preference": "100"}},
},
]
self.assertEqual(parsed_list, result["parsed"])

0 comments on commit a078c30

Please sign in to comment.