-
Notifications
You must be signed in to change notification settings - Fork 23
issue 116 - implemented request to get routes for ipv6 destinations #117
Conversation
…se it will fail using cidr syntax. - fixed indentation
It seems to be impossible to improve code coverage (within scope of this project). The test case for napalm_base only tests IPv4 at this time: Test added in napalm-automation/napalm-base#233 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small change please and we're ready to get this in.
Thanks @manuel-domke
napalm_iosxr/iosxr.py
Outdated
try: | ||
ipv = IPAddress(network).version | ||
except AddrFormatError: | ||
return {'error': 'Wrong destination IP Address!'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please raise TypeError instead or returning a dictionary.
Update iosxr.py
Thanks @manuel-domke @thorko @juergen-geinitz |
This will be included in the next version, 0.5.0. Hope to be able to release it this week. |
implemented the xml request to get static routes for ipv6 destinations from #116