cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
331
Views
5
Helpful
5
Replies
Highlighted
Beginner

nso cisco-ios-xr NED does not support controller tenGigECtrlr for NCS1002

Hello experts,

I need some guidance on the proper NED to use for an NCS 1002 device. 

 

I am using the cisco-iosxr-cli-7.13 on a project with NCS 1002 devices.

The device is appears to be supported, but I don't see the controller tenGigECtrlr.

Using the ncs CLI in config mode, I see the following controllers:


admin@ncs(config-config)# cisco-ios-xr:controller
Possible completions:
E1 E1 Port controller(s)
E3 E3 Port controller(s)
MgmtMultilink Controller for the management of multilink interfacess
ODU4 ODUC4 controller(s) | short name is O4
OTU4 OTUC4 controller(s) | short name is Oc4
OTUC2 OTUC2 controller(s) | short name is Oc2
Optics OPTICS controller | short name is Op
SONET SONET/SDH Port controller(s)
T1 T1 Port controller(s)
T3 T3 Port controller(s)
dwdm DWDM controller(s)
preconfigure Specify a preconfig
pse pse
wanphy WANPHY controller(s)
admin@ncs(config-config)# cisco-ios-xr:controller

 

The device config I need to support has these commands:

controller tenGigECtrlr 0/0/0/14/1
no shutdown

 

Any guidance you can offer would be appreciated.

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

hi Roque,

OK, the answer was in your service config and I missed it.  So, there needs to be a 

<shutdown tags="delete"/>

for each interface you wish to turn up.  I assume this effectively removes shutdown from the config and leaves the interface in a "no shutdown" state.

I saw interesting behavior with the NCS1002.  I deploy the service and immediately after the deploy I see this for a port status:

Port                                            : CoherentDSP 0/0/0/20
Controller State                                : Down
Inherited Secondary State                       : Normal
Configured Secondary State                      : Normal
Derived State                                   : In Service
Loopback mode                                   : None
BER Thresholds                                  : SF = 1.0E-5  SD = 1.0E-7
Performance Monitoring                          : Enable
 
After waiting 5 minutes, I get this status:
Port                                            : CoherentDSP 0/0/0/20
Controller State                                : Up
Inherited Secondary State                       : Normal
Configured Secondary State                      : Normal
Derived State                                   : In Service
Loopback mode                                   : None
BER Thresholds                                  : SF = 1.0E-5  SD = 1.0E-7
Performance Monitoring                          : Enable
 
Weird that it takes 5 minutes for the port to come up on its own.  It will come up faster if you do a command no shutdown on the port.  The only live-status command I see in the Netconf NED is "reload".
 
for reference sake, here is the service:
The template:
<config-template xmlns="http://tail-f.com/ns/config/1.0"
                 servicepoint="NCS1002-BASE">
  <devices xmlns="http://tail-f.com/ns/ncs">
    <device>
      <!--
			Site1-Optical Link Turn-up
      -->
      <name>{/device-site1}</name>
      <config>
        <hardware-module xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ncs1k-mxp-cfg">
          <node>
            <location>0_RP0_CPU0</location>
            <slice>
              <slice-id>2</slice-id>
              <values>
                <client-rate>ten-gig</client-rate>
                <trunk-rate>two-hundred-gig</trunk-rate>
                <fec>sd20</fec>
                <encrypted>false</encrypted>
              </values>
              <client-ains>
                <hours>1</hours>
                <minutes>0</minutes>
              </client-ains>
            </slice>
          </node>
        </hardware-module>
        <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/12</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/13</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/14</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/19</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/20</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>		  
        </interface-configurations>
      </config>
    </device>
    <device>
      <!--
			Site2-Optical Link Turn-up
      -->
      <name>{/device-site2}</name>
      <config>
        <hardware-module xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ncs1k-mxp-cfg">
          <node>
            <location>0_RP0_CPU0</location>
            <slice>
              <slice-id>2</slice-id>
              <values>
                <client-rate>ten-gig</client-rate>
                <trunk-rate>two-hundred-gig</trunk-rate>
                <fec>sd20</fec>
                <encrypted>false</encrypted>
              </values>
              <client-ains>
                <hours>1</hours>
                <minutes>0</minutes>
              </client-ains>
            </slice>
          </node>
        </hardware-module>
        <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/12</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/13</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/14</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/19</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/26</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/27</interface-name>
            <shutdown/>
          </interface-configuration>		  
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/20</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/5</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/6</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>		  
        </interface-configurations>
      </config>
    </device>	
  </devices>
</config-template>
The YANG model:
module NCS1002-BASE {
  namespace "http://com/example/NCS1002BASE";
  prefix NCS1002-BASE;

  import ietf-inet-types {
    prefix inet;
  }
  import tailf-ncs {
    prefix ncs;
  }

  list NCS1002-BASE {
    key name;

    uses ncs:service-data;
    ncs:servicepoint "NCS1002-BASE";

    leaf name {
      type string;
    }

    // may replace this with other ways of refering to the devices.
    leaf-list device-site1 {
      type leafref {
        path "/ncs:devices/ncs:device/ncs:name";
      }
    }
    leaf-list device-site2 {
      type leafref {
        path "/ncs:devices/ncs:device/ncs:name";
      }
    }	

    // replace with your own stuff here
    leaf dummy {
      type inet:ipv4-address;
    }
  }
}
I also had to make these modifications to the device to get it up on Netconf:
Step 1  netconf-yang agent ssh

Enables the Netconf agent process.

Step 2  ssh server netconf

Enables Netconf.

Step 3  ssh server v2

Enables SSH on the device and enables Netconf on port 22 if the Netconf agent process is enabled.

I had to add ssh server netconf port 830

On NSO, I had to make these settings for the device:

devices device Site1-Optical
address 10.253.22.48
port 830
ssh host-key ssh-dss
key-data "AAAAB3NzaC1kc3MAAACBANA/ZzjfsOJ7i02sCIw9HhPBvFhiUMbAiXlWNHDOFGB52sgTyLhR\nqSbaG71ATidmyS/ropRZIpgbkSKnvT7fiZTMPaOUARjS93RbAZsu3DpSERpZZX3s/7zQIKfp\nFAvxErBNZVO0BVjhK1qHoH5wKQqLrM2CNn3099yCl6PvdatTAAAAFQDzsdrvsrNMVl6oxeKy\nO79RmM8UiQAAAIALFfIWYBSxj92BIonReTGZwJFctDkJS3ZWECAyz6kxi5BT9aruIOT/LrnF\nZin7eeXsYLS4U9+zGxUKdou6etaDdMkhvcSr9WYdbZbZa0Z5oZ9JssO8bxlJo6EM3snjoj3D\n4F37S43rFBLYcIF/jiG4Js/96mP3rnW23xsW4Kjy1wAAAIEArYmr6y5gTLGiYbQUgMrfkruc\n7kVlz8ozCP7IbjeRqqqP+WtQTCLapswCupJ8cP9HW69m0uDtgFMH9v2lwaiHArws/QR3ccbt\nK0IvAMoOuNCrI7KHO1xuPT4nnhr22sb1+mgOpWz4IEbtBFWRNbDnJd316dDmh2MUPvHaHRnY\n0i4="
!
ssh host-key-verification none
authgroup ncs
device-type netconf ned-id cisco-nc-6.6
state admin-state unlocked

 

Thanks again for the help, I'll mark this one as solved. 

 

 

View solution in original post

5 REPLIES 5
Highlighted
Cisco Employee

Please use the NSO and NED support process

Highlighted
Cisco Employee

Hi Ron,

 

Have you given NETCONF a chance on NCS1002? These are typically devices that require very small configuration and have recent XR versions with excellent NETCONF coverage.

 

Attached an example of a demo template I tried in one of them that worked "like a charm".

 

Regards,

Roque

 

<config-template xmlns="http://tail-f.com/ns/config/1.0">
  <devices xmlns="http://tail-f.com/ns/ncs">

<!-- OTI A -->
  <device>
    <name>{/oti-a/device}</name>
      <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
      <interface-configuration>
        <active>act</active>
        <interface-name>{/oti-a/client-config/interface-name}</interface-name>
        <description>Client Interface {/name}</description>
        <shutdown tags="delete"/>
      </interface-configuration>
      <interface-configuration>
        <active>act</active>
        <interface-name>{/oti-a/network-config/interface-name}</interface-name>
        <description>Network Interface {/name}</description>
        <shutdown tags="delete"/>
        <link-status/>
        <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
          <rx-thresholds>
            <rx-threshold>
              <rx-threshold-type>low</rx-threshold-type>
              <rx-threshold>-135</rx-threshold>
            </rx-threshold>
          </rx-thresholds>
          <optics-dwdm-carrier>
            <grid-type>50g-hz-grid</grid-type>
            <param-type>frequency</param-type>
            <param-value>{/frequency}</param-value>
          </optics-dwdm-carrier>
        </optics>
      </interface-configuration>
      </interface-configurations>
      </config>
  </device>

<!-- OTI Z -->
  <device>
    <name>{/oti-z/device}</name>
      <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
      <interface-configuration>
        <active>act</active>
        <interface-name>{/oti-z/client-config/interface-name}</interface-name>
        <description>Client Interface {/name}</description>
        <shutdown tags="delete"/>
      </interface-configuration>
      <interface-configuration>
        <active>act</active>
        <interface-name>{/oti-z/network-config/interface-name}</interface-name>
        <description>Network Interface {/name}</description>
        <shutdown tags="delete"/>
        <link-status/>
        <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
          <rx-thresholds>
            <rx-threshold>
              <rx-threshold-type>low</rx-threshold-type>
              <rx-threshold>-135</rx-threshold>
            </rx-threshold>
          </rx-thresholds>
          <optics-dwdm-carrier>
            <grid-type>50g-hz-grid</grid-type>
            <param-type>frequency</param-type>
            <param-value>{/frequency}</param-value>
          </optics-dwdm-carrier>
        </optics>
      </interface-configuration>
      </interface-configurations>
      </config>
  </device>
  </devices>
</config-template>

 

Highlighted

Hi Roque,

I took your advice and used the netconf NED.  At first I was trying to do a base config template for onboarding the device.  I found the netconf NED didn't cover some of the things the CLI NED did, and likewise the CLI NED didn't cover the interface modules I needed. So.. I pared it down to just a service which turns on an optical link and that seems to work with the netconf NED.  However, I still have an issue.  After the config is loaded into the NCS1002, it doesn't turn on the optical link.  Do you know if there is another step that needs done to enable the optical link on the NCS1002?  Typically, you put in config for a port and as long as there's not a shutdown in the config, the port comes up.  Let me know if you have any more advice on this.  Thanks again for the reply and the good direction on the netconf NED.

Ron

Highlighted

Hi Ron,

Two things:

1- I would recommend you to request whatever you need from the CLI NED via the process you were referred to via the TAC.

2- Typically, my recommendation on missing NETCONF commands is to go to the device and change what you need in the CLI until it is working and then go back to NSO to do a "compare config".

Roque

Highlighted

hi Roque,

OK, the answer was in your service config and I missed it.  So, there needs to be a 

<shutdown tags="delete"/>

for each interface you wish to turn up.  I assume this effectively removes shutdown from the config and leaves the interface in a "no shutdown" state.

I saw interesting behavior with the NCS1002.  I deploy the service and immediately after the deploy I see this for a port status:

Port                                            : CoherentDSP 0/0/0/20
Controller State                                : Down
Inherited Secondary State                       : Normal
Configured Secondary State                      : Normal
Derived State                                   : In Service
Loopback mode                                   : None
BER Thresholds                                  : SF = 1.0E-5  SD = 1.0E-7
Performance Monitoring                          : Enable
 
After waiting 5 minutes, I get this status:
Port                                            : CoherentDSP 0/0/0/20
Controller State                                : Up
Inherited Secondary State                       : Normal
Configured Secondary State                      : Normal
Derived State                                   : In Service
Loopback mode                                   : None
BER Thresholds                                  : SF = 1.0E-5  SD = 1.0E-7
Performance Monitoring                          : Enable
 
Weird that it takes 5 minutes for the port to come up on its own.  It will come up faster if you do a command no shutdown on the port.  The only live-status command I see in the Netconf NED is "reload".
 
for reference sake, here is the service:
The template:
<config-template xmlns="http://tail-f.com/ns/config/1.0"
                 servicepoint="NCS1002-BASE">
  <devices xmlns="http://tail-f.com/ns/ncs">
    <device>
      <!--
			Site1-Optical Link Turn-up
      -->
      <name>{/device-site1}</name>
      <config>
        <hardware-module xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ncs1k-mxp-cfg">
          <node>
            <location>0_RP0_CPU0</location>
            <slice>
              <slice-id>2</slice-id>
              <values>
                <client-rate>ten-gig</client-rate>
                <trunk-rate>two-hundred-gig</trunk-rate>
                <fec>sd20</fec>
                <encrypted>false</encrypted>
              </values>
              <client-ains>
                <hours>1</hours>
                <minutes>0</minutes>
              </client-ains>
            </slice>
          </node>
        </hardware-module>
        <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/12</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/13</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/14</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/19</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/20</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>		  
        </interface-configurations>
      </config>
    </device>
    <device>
      <!--
			Site2-Optical Link Turn-up
      -->
      <name>{/device-site2}</name>
      <config>
        <hardware-module xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ncs1k-mxp-cfg">
          <node>
            <location>0_RP0_CPU0</location>
            <slice>
              <slice-id>2</slice-id>
              <values>
                <client-rate>ten-gig</client-rate>
                <trunk-rate>two-hundred-gig</trunk-rate>
                <fec>sd20</fec>
                <encrypted>false</encrypted>
              </values>
              <client-ains>
                <hours>1</hours>
                <minutes>0</minutes>
              </client-ains>
            </slice>
          </node>
        </hardware-module>
        <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/12</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/13</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/14</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/19</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/26</interface-name>
            <shutdown/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/27</interface-name>
            <shutdown/>
          </interface-configuration>		  
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>Optics0/0/0/20</interface-name>
            <optics xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-optics-cfg">
              <optics-dwdm-carrier>
                <grid-type>50g-hz-grid</grid-type>
                <param-type>itu-ch</param-type>
                <param-value>97</param-value>
              </optics-dwdm-carrier>
              <optics-transmit-power>-40</optics-transmit-power>
            </optics>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/20</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/5</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>
          <interface-configuration>
            <active>act</active>
            <interface-name>CoherentDSP0/0/0/6</interface-name>
            <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-cfg">
              <second30>
                <second30fec>
                  <second30fec-reports>
                    <second30fec-report>
                      <fec-report>report-ec-bits</fec-report>
                      <enable>false</enable>
                    </second30fec-report>
                  </second30fec-reports>
                </second30fec>
              </second30>
            </performance-management>
			<shutdown tags="delete"/>
          </interface-configuration>		  
        </interface-configurations>
      </config>
    </device>	
  </devices>
</config-template>
The YANG model:
module NCS1002-BASE {
  namespace "http://com/example/NCS1002BASE";
  prefix NCS1002-BASE;

  import ietf-inet-types {
    prefix inet;
  }
  import tailf-ncs {
    prefix ncs;
  }

  list NCS1002-BASE {
    key name;

    uses ncs:service-data;
    ncs:servicepoint "NCS1002-BASE";

    leaf name {
      type string;
    }

    // may replace this with other ways of refering to the devices.
    leaf-list device-site1 {
      type leafref {
        path "/ncs:devices/ncs:device/ncs:name";
      }
    }
    leaf-list device-site2 {
      type leafref {
        path "/ncs:devices/ncs:device/ncs:name";
      }
    }	

    // replace with your own stuff here
    leaf dummy {
      type inet:ipv4-address;
    }
  }
}
I also had to make these modifications to the device to get it up on Netconf:
Step 1  netconf-yang agent ssh

Enables the Netconf agent process.

Step 2  ssh server netconf

Enables Netconf.

Step 3  ssh server v2

Enables SSH on the device and enables Netconf on port 22 if the Netconf agent process is enabled.

I had to add ssh server netconf port 830

On NSO, I had to make these settings for the device:

devices device Site1-Optical
address 10.253.22.48
port 830
ssh host-key ssh-dss
key-data "AAAAB3NzaC1kc3MAAACBANA/ZzjfsOJ7i02sCIw9HhPBvFhiUMbAiXlWNHDOFGB52sgTyLhR\nqSbaG71ATidmyS/ropRZIpgbkSKnvT7fiZTMPaOUARjS93RbAZsu3DpSERpZZX3s/7zQIKfp\nFAvxErBNZVO0BVjhK1qHoH5wKQqLrM2CNn3099yCl6PvdatTAAAAFQDzsdrvsrNMVl6oxeKy\nO79RmM8UiQAAAIALFfIWYBSxj92BIonReTGZwJFctDkJS3ZWECAyz6kxi5BT9aruIOT/LrnF\nZin7eeXsYLS4U9+zGxUKdou6etaDdMkhvcSr9WYdbZbZa0Z5oZ9JssO8bxlJo6EM3snjoj3D\n4F37S43rFBLYcIF/jiG4Js/96mP3rnW23xsW4Kjy1wAAAIEArYmr6y5gTLGiYbQUgMrfkruc\n7kVlz8ozCP7IbjeRqqqP+WtQTCLapswCupJ8cP9HW69m0uDtgFMH9v2lwaiHArws/QR3ccbt\nK0IvAMoOuNCrI7KHO1xuPT4nnhr22sb1+mgOpWz4IEbtBFWRNbDnJd316dDmh2MUPvHaHRnY\n0i4="
!
ssh host-key-verification none
authgroup ncs
device-type netconf ned-id cisco-nc-6.6
state admin-state unlocked

 

Thanks again for the help, I'll mark this one as solved. 

 

 

View solution in original post