Skip to content

Commit

Permalink
A couple of cleanup items missed/resolved.
Browse files Browse the repository at this point in the history
  • Loading branch information
bminnix committed May 12, 2024
1 parent 054a5be commit abffe5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
31 changes: 16 additions & 15 deletions docs/user/lib_use_cases_os_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,29 @@ Current Version Parsers:
**See the following Default and Juniper JunOS parsed versions:**

```python
>>> from os_version import default_os_metadata, juniper_junos_metadata
>>> from netutils.os_version import version_metadata

>>> default_os_metadata("cisco", "ios", "15.5")
>>> version_metadata("Cisco", "IOS", "15.5")
{
"major": "15",
"minor": "5",
"patch": None,
"vendor_metadata": False,
}
>>> juniper_junos_metadata("juniper", "junos", "12.2x50:d41.1")
>>> version_metadata("juniper", "junos", "12.4R")
{
"isservice": false,
"ismaintenance": false,
"isfrs": false,
"isspecial": true,
"service": "d",
"service_build": "41",
"service_respin": "1",
"isservice": False,
"ismaintenance": False,
"isfrs": True,
"isspecial": False,
"service": None,
"service_build": None,
"service_respin": None,
"main": "12",
"minor": "4",
"type": "R",
"build": None,
"major": "12",
"minor": "2",
"type": "x",
"build": "50",
"patch": "50"
"patch": None,
"vendor_metadata": True,
}
```
2 changes: 0 additions & 2 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"jinja2_convenience_function",
"import_module",
"get_network_driver",
"get_nist_urls_default",
"get_nist_urls_juniper_junos",
]


Expand Down

0 comments on commit abffe5d

Please sign in to comment.