diff --git a/plugins/modules/ios_vrf_interfaces.py b/plugins/modules/ios_vrf_interfaces.py index 315998342..85a1ad91d 100644 --- a/plugins/modules/ios_vrf_interfaces.py +++ b/plugins/modules/ios_vrf_interfaces.py @@ -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 ' under the interface. diff --git a/tests/unit/modules/network/ios/test_ios_vrf_interfaces.py b/tests/unit/modules/network/ios/test_ios_vrf_interfaces.py index a4cbc2c98..088def0ca 100644 --- a/tests/unit/modules/network/ios/test_ios_vrf_interfaces.py +++ b/tests/unit/modules/network/ios/test_ios_vrf_interfaces.py @@ -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", @@ -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)