Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_interfaces_ip fails when multiple ipv6 addresses configured #442

Closed
mirceaulinic opened this issue Oct 24, 2017 · 2 comments
Closed

Comments

@mirceaulinic
Copy link
Member

This was configured:

interface Ethernet2/4
  no switchport
  mac-address 2cc2.607d.5725
  ipv6 address 2001:db8:800:200c::2/64
  ipv6 address 2001:db8:800:200d::2/64
  no shutdown

Ansible playbook had the following:

    - name: NAPALM get interface config
      napalm_get_facts: 
        provider: "{{ creds_napalm }}"
        filter: "interfaces_ip"

Would get this error message back:

    "msg": "[interfaces_ip] cannot retrieve device data: 'list' object has no attribute 'split'"

Using NX-API


Issue moved from napalm-automation/napalm-nxos#127

@chadell
Copy link
Contributor

chadell commented Nov 18, 2017

@mirceaulinic
do you know how it looks it in json? I mean, I would test it adapting the tests in nxos/mocked_data/test_get_interfaces_ip:


"TABLE_intf": {
        "ROW_intf": {
            "intf-name": "Ethernet1/7",
            "proto-state": "down",
            "link-state": "down",
            "admin-state": "up",
            "addr": "fe80::5287:89ff:fea1:de75",
            "linklocal-addr": "fe80::5287:89ff:fea1:de75",
            "linklocal-configured": "FALSE",
            "mrouting-enabled": "disabled",
            "mgroup-locally-joined": "TRUE",
            "TABLE_maddr": {
                "ROW_maddr": [{
                    "m-addr": "ff02::2"
                }, {
                    "m-addr": "ff02::1"
                }, {
                    "m-addr": "ff02::1:ffa1:de75"
                }

I asked in case you had this info, but I will download a NXOS to get real data 😉

@ktbyers
Copy link
Contributor

ktbyers commented Apr 14, 2018

We should probably check what we do here for NXOS SSH as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants