Skip to content

Commit b484c70

Browse files
author
Josh VanDeraa
committed
Updates to proper wording of readme
1 parent 8598876 commit b484c70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ The plugin behavior can be controlled with the following list of settings
5353
- `default_device_role_color` string (default FF0000), color assigned to the device role if it needs to be created.
5454
- `default_management_interface` string (default "PLACEHOLDER"), name of the management interface that will be created, if one can't be identified on the device.
5555
- `default_management_prefix_length` integer ( default 0), length of the prefix that will be used for the management IP address, if the IP can't be found.
56-
- `platform_map` (dictionary), mapping of an **auto-detected** Netmiko platform to the **slug** name of your Platform. The dictionary should be in the format:
56+
- `platform_map` (dictionary), mapping of an **auto-detected** Netmiko platform to the **NetBox slug** name of your Platform. The dictionary should be in the format:
5757
```python
5858
{
59-
<NetBox Slug>: <desired_NAPALM_DRIVER>
59+
<Netmiko Platform>: <NetBox Slug>
6060
}
6161
```
6262

netbox_onboarding/tests/test_netbox_keeper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def test_failed_check_ip(self, mock_get_hostbyname):
236236
def test_platform_map(self):
237237
"""Verify platform mapping functionality."""
238238
# Create static mapping
239-
platform_map = {"cisco-ios": "ios", "arista_eos": "eos", "cisco_nxos": "cisco-nxos"}
239+
platform_map = {"cisco_ios": "ios", "arista_eos": "eos", "cisco_nxos": "cisco-nxos"}
240240

241241
# Generate an instance of a Cisco IOS device with the mapping defined
242242
self.ndk1 = NetdevKeeper(self.onboarding_task1)
@@ -246,7 +246,7 @@ def test_platform_map(self):
246246
#
247247

248248
# Test Cisco_ios
249-
self.assertEqual(self.ndk1.check_netmiko_conversion("cisco-ios", platform_map=platform_map), "ios")
249+
self.assertEqual(self.ndk1.check_netmiko_conversion("cisco_ios", platform_map=platform_map), "ios")
250250
# Test Arista EOS
251251
self.assertEqual(self.ndk1.check_netmiko_conversion("arista_eos", platform_map=platform_map), "eos")
252252
# Test cisco_nxos

0 commit comments

Comments
 (0)