Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 24, 2024
1 parent b219ff1 commit 8f78aa9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Tunnel1110 is up, line protocol is up
GigabitEthernet2/5/5 is up, line protocol is up
Internet protocol processing disabled
GigabitEthernet2/5/5.1874 is deleted, line protocol is down
Internet protocol processing disabled
Internet protocol processing disabled
27 changes: 13 additions & 14 deletions tests/unit/modules/network/ios/test_ios_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,23 +206,22 @@ def test_ios_facts_interfaces(self):
result = self.execute_module()
self.assertEqual(
result["ansible_facts"]["ansible_net_interfaces"]["GigabitEthernet2/5/5.1874"],
{'ipv4': [], 'operstatus': 'deleted'},
{"ipv4": [], "operstatus": "deleted"},
)
self.assertEqual(
result["ansible_facts"]["ansible_net_interfaces"]["Tunnel1110"],
{
'bandwidth': None,
'description': None,
'duplex': None,
'ipv4': [
{'address': '10.10.10.2', 'subnet': '30'}
],
'lineprotocol': 'up',
'macaddress': None,
'mediatype': None,
'mtu': None,
'operstatus': 'up',
'type': None
"bandwidth": None,
"description": None,
"duplex": None,
"ipv4": [
{"address": "10.10.10.2", "subnet": "30"},
],
"lineprotocol": "up",
"macaddress": None,
"mediatype": None,
"mtu": None,
"operstatus": "up",
"type": None,
},
)

0 comments on commit 8f78aa9

Please sign in to comment.