napalm-automation-community / napalm-s350

NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx).
Apache License 2.0
16 stars 13 forks source link

incorrect parsing of hostname and fqdn #57

Closed qaxi closed 3 years ago

qaxi commented 3 years ago

There are edge cases for 'hostname' and 'fqdn' parsing.

From https://github.com/napalm-automation/napalm/blob/develop/napalm/ios/ios.py i can read this: if hostname is unknown then hostname value is 'Unknown' if domain or hostname is unknown then fqdn value is 'Unknown'

I will make it rule for release v0.3.0

qaxi commented 3 years ago

FQDN parsing is completely broken. Domain name is allways 'Unknown'.

WIP

qaxi commented 3 years ago

58 should solve FQDN parsing