Skip to content

Commit

Permalink
structured the code according to pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
AAYUSH2091 committed Nov 11, 2024
1 parent 5830372 commit bb345c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/ios_vrf_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
- Example - GigabitEthernet0/1, FastEthernet0/0
type: str
required: true
vrf:
vrf_name:
description:
- Name of the VRF to be configured on the interface.
- When configured, applies 'vrf forwarding <vrf_name>' under the interface.
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/modules/network/ios/test_ios_vrf_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def test_ios_vrf_interfaces_merged_idempotent(self):
{"name": "GigabitEthernet1"},
{"name": "GigabitEthernet2"},
{"name": "GigabitEthernet3", "vrf_name": "testvrf2"},
{"name": "GigabitEthernet3", "vrf_name": "testvrf2"},
{"name": "GigabitEthernet4", "vrf_name": "testvrf1"},
],
state="merged",
Expand Down Expand Up @@ -266,7 +267,7 @@ def test_ios_vrf_interfaces_parsed(self):
{"name": "GigabitEthernet3"},
{"name": "GigabitEthernet4", "vrf_name": "vrf_2"},
]

result = self.execute_module(changed=False)

self.assertEqual(result["parsed"], parsed_list)
Expand Down

0 comments on commit bb345c6

Please sign in to comment.