CiscoDevNet / yangsuite

Cisco YANG Suite provides a set of tools and plugins to learn, test, and adopt YANG programmable interfaces such as NETCONF, RESTCONF, gNMI and more.
Other
244 stars 76 forks source link

ipv6 doesn't seems to support #32

Closed atmoskr closed 3 years ago

atmoskr commented 3 years ago

One quick question, when I try to input ipv6 address for netconf server, it display ip is wrong. If it doesn't support, do you have any plan to support later?

miott commented 3 years ago

That is a bug introduced by a commit 6 months ago. Will be fixed in next release of yangsuite-devices. As a workaround you should be able to edit the device profile file directly and put in the IPv6 address there.

The device profile files are stored in the data directory you setup at install time if you did a python install. Look for "data/devices/\<your device name>.devprofile" and change the "address" field in the base section. If you have a docker installation you will find the "/yangsuite/docker/ysdata/devices/" directory, added when you built the container.

Example:

{
  "base": {
    "profile_name": "csr57",
    "description": "csr57",
    "address": "2002::80",  <---change here
    "username": "admin",
    "timeout": 30,
    "variables": {
      "interface": "2",
...<snip>...
atmoskr commented 3 years ago

Greate Miott. Thank you for this good information, and will try~~

miott commented 3 years ago

Fixed in next release of yangsuite-devices.

miott commented 3 years ago

@atmoskr We now have a pre-release of yangsuite-devices available that should fix all IPv6 issues. Give it a try if you wish. If your current install is working with your change to the device profile file no need to update.

Docker install

docker container exec -it <yangsuite container ID> bash
pip install --upgrade --pre yangsuite-devices
exit

Python install

source <your yangsuite venv>/bin/activate
pip install --upgrade --pre yangsuite-devices