cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2136
Views
5
Helpful
11
Replies

no registration found for callpoint

prabinelitenet
Level 1
Level 1

hi, i'm new in cisco NSO and i'm trying to create service template but when i tried to commit, it's throwing error message as below. i did google before posting and found service point in yang and xml template has to match exactly and in my case, it's matched. could you please help to isolate this issue?

 

1 Accepted Solution

Accepted Solutions

Concerning the router-id , you define it in the yang as uint16 so you cannot use ip address. You need to change the type

 

    leaf router-id{
        type uint16;
    }

As i said before , in order to help you . Can you try to configure the device manually without using your services or do a show running-config devices device <EXISTING_DEVICE> config router   | display xml  on a router that has already the configuration in order to get the xml template.

 

 

View solution in original post

11 Replies 11

Nabsch
Spotlight
Spotlight

Hello ,

 

Can you provide us your package ? Package-metadata, yang , python or Java , xml ?

radioman
Spotlight
Spotlight

Hi

Looks like your xml file is not loaded at all due to parsing error:

oper-status error-info "access-service-template.xml:10 The node: config contains unexpected data: '>'."


If the file is not loaded service-point is not registered. You did not share enough of the xml file to tell what the problem could be.

br.

Kristoffer Larsen

prabinelitenet
Level 1
Level 1

Please check the files as attached.

Nabsch
Spotlight
Spotlight

Hello ,

As @radioman  said you had error in your XML. You need to remove the extra character >.

 

Also you made some mistake in your XML template.

  1. Your need to change  <name>{/device/name}</name> to just  <name>{/device}</name>
  2. Since you are using list of router you will need to use a foreach. A foreach example from NSO Doc 

In order to get the XML tempalte . Please first to configure device using NSO from ncs_cli then do a commit dry-run outformat xml then change the generated xml by replacing using your data structure that you define in Yang file.

Please try to provide us your XML as it in your NSO instance. For example the router node in your xml is missing the namespace.

Thank you @Nabsch for your prompt response.

yes i did the modification but it is still throwing error message. in the xml file, i need to use loop for 2 instances TEST1 and TEST2.

admin@ncs(config-access-service-SW31)# commit dry-run outformat xml
result-xml {
local-node {
data <services xmlns="http://tail-f.com/ns/ncs">
<access-service xmlns="http://com/example/accessservice">
<device>SW31</device>
<router>
<name>TEST1</name>
<router-id>100</router-id>
<network>12.12.12.12/32</network>
<description>TEST1</description>
</router>
<router>
<name>TEST2</name>
<router-id>200</router-id>
<network>13.13.13.13/32</network>
<description>TEST2</description>
</router>
</access-service>
</services>
}
}

admin@ncs(config)# services access-service SW31
admin@ncs(config-access-service-SW31)# router TEST1
admin@ncs(config-router-TEST1)# router-id 1.1.1.1
------------------------------------------^
syntax error: "1.1.1.1" is not a valid value.
admin@ncs(config-router-TEST1)# router-id 12.12.12.12
------------------------------------------^
syntax error: "12.12.12.12" is not a valid value.
admin@ncs(config-router-TEST1)# router-id 100
admin@ncs(config-router-TEST1)# network 12.12.12.12/32
admin@ncs(config-router-TEST1)# description TEST1
admin@ncs(config-router-TEST1)# exit
admin@ncs(config-access-service-SW31)# router
Possible completions:
<name:string>
TEST1 TEST1
admin@ncs(config-access-service-SW31)# router TEST2
admin@ncs(config-router-TEST2)# router-id 200
admin@ncs(config-router-TEST2)# network 13.13.13.13/32
admin@ncs(config-router-TEST2)# description TEST2
admin@ncs(config-router-TEST2)# exit

thank you for your help guys. i'm new in NSO and xml is also new for me.I appreciate your help.

below is my new xml template

 

<config-template xmlns="http://tail-f.com/ns/config/1.0"
                 servicepoint="access-service">
  <devices xmlns="http://tail-f.com/ns/ncs">
    <device>
      <name>{/device}</name>
      <config>


    <!--IOS-->>
            <router xmlns="urn:ios">
            <router-list>
              <name>{/name}</name>
            </router-list>
            <?forearch {router}?>
            <name>{/name}</name>
                   <router-id>{/id}}</router-id>
                   <network>{/prefix}</network>
                   <description>{/site-name}}</description>
            </router>
            <?end?>
      </config>
    </device>
  </devices>
</config-template>



Which ned version are you using and also which nso version ?

Concerning the router-id , you define it in the yang as uint16 so you cannot use ip address. You need to change the type

 

    leaf router-id{
        type uint16;
    }

As i said before , in order to help you . Can you try to configure the device manually without using your services or do a show running-config devices device <EXISTING_DEVICE> config router   | display xml  on a router that has already the configuration in order to get the xml template.

 

 

prabinelitenet
Level 1
Level 1

hi, i'm trying to configure something different than router ios supports. is that possible?

once i define yang model and compile the package, that command is showing for that particular device. But once i deploy service template, it's throwing error message.

No you cannot . Your template is based on NED modelization ( that mean what the NED can support). So you cannot modelize a template  of device configuration that's not supported by the NED.

prabinelitenet
Level 1
Level 1

got it. thank you Nabsch.