cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
102
Views
2
Helpful
3
Replies
Highlighted
Beginner

nso and aci

Hi,

we're testing NSO with ACI but are having some problems getting the config from ACI into NSO.

It's downloading al kinds of config into the /root/ncs-run/config directory from our ACI setup but the we get a connection error:

<< 17-Mar-2016::17:21:05.040 CONNECTED 1

>> 17-Mar-2016::17:21:05.115 SHOW 1:

<< 17-Mar-2016::17:21:16.964 ERROR: Network Element Driver error econnrefused for device aci.t-i.demo:

Trace : [java.lang.NullPointerException]

>> 17-Mar-2016::17:21:16.964 CLOSE 1: (Pool: false)

<< 17-Mar-2016::17:21:16.965 CLOSED

[edit devices device aci.t-i.demo]

admin@ncs% show

address   aci.t-i.demo;

port      443;

authgroup aci;

device-type {

    generic {

        ned-id cisco-apicdc-id;

    }

}

ned-settings {

    cisco-apicdc {

        config-path   /root/ncs-run/config;

        host          ncs03.t-i.demo;

        user-name     username;

        user-password passwordd;

        protocol      scp;

    }

}

state {

    admin-state unlocked;

}

Any idea what might be wrong here?

3 REPLIES 3
Highlighted
Cisco Employee

Can you provide the ncs-java-vm.log file? It should provide some details on the exception noted above.

Highlighted

Hmm, look like there is no support for dvsVersion 6.0:


admin@ncs> request devices device aci.t-i.demo disconnect

[ok][2016-03-30 21:21:00]

admin@ncs> request devices device aci.t-i.demo connect

result true

info (admin) Connected to aci.t-i.demo - 10.160.50.5:443

[ok][2016-03-30 21:21:05]

admin@ncs> request devices device aci.t-i.demo sync-from

result false

info Network Element Driver error econnrefused for device aci.t-i.demo:

Trace : [java.lang.NullPointerException]

        com.tailf.packages.ned.ciscoApicdc.XmlUtil.addSubtree(XmlUtil.java:370)

        com.tailf.packages.ned.ciscoApicdc.XmlUtil.getSubTrees(XmlUtil.java:283)

        com.tailf.packages.ned.ciscoApicdc.XmlUtil.getDeviceConfig(XmlUtil.java:230)

        com.tailf.packages.ned.ciscoApicdc.CiscoApicdcNed.getCompleteConfigFromFile(CiscoApicdcNed.java:931)

        com.tailf.packages.ned.ciscoApicdc.CiscoApicdcNed.show(CiscoApicdcNed.java:581)

        com.tailf.ned.NedWorker.dorun(NedWorker.java:1578)

        com.tailf.ned.NedWorker.run(NedWorker.java:292)

[ok][2016-03-30 21:21:54]

From the ncs-java-vm.log:

<ERROR> 30-Mar-2016::21:18:45.719 CiscoApicdcNed Ned-Worker-Thread-0: - com.tailf.conf.ConfException: Error on line 130: invalid value for: dvsVersion in /ncs:devices/ncs:device[n

cs:name='aci.t-i.demo']/ncs:config/cisco-apicdc:apic/cisco-apicdc:vmmProvP[cisco-apicdc:vendor='VMware']/cisco-apicdc:vmmDomP[cisco-apicdc:name='aci']/cisco-apicdc:vmmCtrlrP[cisco

-apicdc:name='vc02.t-i.demo']/cisco-apicdc:dvsVersion: "6.0" is an invalid value.

<ERROR> 30-Mar-2016::21:18:46.133 CiscoApicdcNed Ned-Worker-Thread-0: - java.lang.NullPointerException

<ERROR> 30-Mar-2016::21:18:46.134 NedWorker Ned-Worker-Thread-0: - NedWorker error for ned_show_generic

com.tailf.ned.NedException:

        at com.tailf.packages.ned.ciscoApicdc.CiscoApicdcNed.show(CiscoApicdcNed.java:590)

        at com.tailf.ned.NedWorker.dorun(NedWorker.java:1578)

        at com.tailf.ned.NedWorker.run(NedWorker.java:292)

Caused by: java.lang.NullPointerException

        at com.tailf.packages.ned.ciscoApicdc.XmlUtil.addSubtree(XmlUtil.java:370)

        at com.tailf.packages.ned.ciscoApicdc.XmlUtil.getSubTrees(XmlUtil.java:283)

        at com.tailf.packages.ned.ciscoApicdc.XmlUtil.getDeviceConfig(XmlUtil.java:230)

        at com.tailf.packages.ned.ciscoApicdc.CiscoApicdcNed.getCompleteConfigFromFile(CiscoApicdcNed.java:931)

        at com.tailf.packages.ned.ciscoApicdc.CiscoApicdcNed.show(CiscoApicdcNed.java:581)

Highlighted

Yep, looking at the NED model I see the following definition for the version string.

          leaf dvsVersion {

            tailf:info "version of dvs ";

            type enumeration {

              enum defaultValue;

              enum unmanaged;

              enum 5.1;

              enum 5.5;

            }

            default unmanaged;

          }

So a dos version of 6.0 would cause the issue you are seeing.

-Dan

Content for Community-Ad
Cisco Community August2020 Spotlight Award Winners
This widget could not be displayed.