cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
68
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

Minor NCS bug while debugging templates

While debugging a template in NCS 3.4.1, some debugging information displayed looked incorrect and causing confusion. I am using “create” but debug is displaying it as “merge”. The end results looks good but incorrect information is causing confusion.

I am copying the template and debug information below. Please let me know if I am missing anything.

Template

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

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

  <template><name>7600Migration</name>

     <config>

<vrf xmlns="http://tail-f.com/ned/cisco-ios-xr">

    <vrf-list>

      <name>OPERACAO</name>

      <description>VPN para plataformas e gerencias</description>

      <address-family>

        <ipv4>

          <unicast>

            <import>

              <route-target>

                <address-list>

                  <name tags=" create ">22085:61</name>

                </address-list>

              </route-target>

            </import>

            <import>

              <route-target>

                <address-list>

                  <name tags=" create ">22086:62</name>

                </address-list>

              </route-target>

            </import>

            <export>

              <route-target>

                <address-list>

                  <name>22085:61</name>

                </address-list>

              </route-target>

            </export>

          </unicast>

        </ipv4>

      </address-family>

    </vrf-list>

  </vrf>

  <interface xmlns="http://tail-f.com/ned/cisco-ios-xr">

    <BVI>

      <id>100</id>

      <description>CENTRAIS</description>

      <ipv4>

        <address>

          <mask>255.255.255.0</mask>

          <ip>10.115.11.2</ip>

        </address>

      </ipv4>

      <vrf>OPERACAO</vrf>

    </BVI>

  </interface>

      </config>

    </template>

</devices>

</config>

Debug Information

admin@ncs% request devices device ASR9K0 apply-template template-name 7600Migration variable { name DevName value '7600R0' } | debug template

Operation 'merge' on existing node: /devices/device[name='ASR9K0']

Fetching literal "100"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/description

Fetching literal "CENTRAIS"

Setting /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/description to "CENTRAIS"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/ipv4/address/ip

Fetching literal "10.115.11.2"

Setting /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/ipv4/address/ip to "10.115.11.2"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/ipv4/address/mask

Fetching literal "255.255.255.0"

Setting /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/ipv4/address/mask to "255.255.255.0"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/vrf

Fetching literal "OPERACAO"

Setting /devices/device[name='ASR9K0']/config/cisco-ios-xr:interface/BVI[id='100']/vrf to "OPERACAO"

Fetching literal "OPERACAO"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/description

Fetching literal "VPN para plataformas e gerencias"

Setting /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/description to "VPN para plataformas e gerencias"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/address-family/ipv4/unicast

Fetching literal "22085:61"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/address-family/ipv4/unicast/export/route-target/address-list[name='22085:61']

Fetching literal "22085:61"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/address-family/ipv4/unicast/import/route-target/address-list[name='22085:61']

Fetching literal "22086:62"

Operation 'merge' on non-existing node: /devices/device[name='ASR9K0']/config/cisco-ios-xr:vrf/vrf-list[name='OPERACAO']/address-family/ipv4/unicast/import/route-target/address-list[name='22086:62']

apply-template-result {

    device ASR9K0

    result ok

}

[ok][2015-06-03 10:25:30]

Everyone's tags (6)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Minor NCS bug while debugging templates

Looks like a bug - I'll create an internal Tail-f trac ticket on this one.

1 REPLY 1
Cisco Employee

Re: Minor NCS bug while debugging templates

Looks like a bug - I'll create an internal Tail-f trac ticket on this one.

Content for Community-Ad
August's Community Spotlight Awards