cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
469
Views
4
Helpful
2
Replies

can't create service instance

kerim mohammed
Level 3
Level 3

Guys,

I installed NSO V4.4.5 locally. I created a java based service skeleton called "vlan". after compiling and reloading, I couldn't see the service when trying to instantiate a service. below is what I am seeing:

admin@ncs# show packages package vlan

packages package vlan

package-version 1.0

description     "Java-based vlan resource facing service"

ncs-min-version [ 4.4 ]

directory       ./state/packages-in-use/1/vlan

component vlanRFS

  callback java-class-name [ com.example.vlan.vlanRFS ]

oper-status up

admin@ncs# config

Entering configuration mode terminal

admin@ncs(config)# services ?

Possible completions:

  check-sync           Check if device configuration is according to the services

  commit-dry-run       DEPRECATED - use commit dry-run instead

  customer-service     Service that can be linked to customer

  global-settings     

  logging              Configure service logging

  plan-notifications   Configuration to send plan-state-change notifications for plan state transitions.

  service              List of resource facing services

admin@ncs(config)# services vl

                            ^

% Invalid input detected at '^' marker.

admin@ncs(config)# services vlan vlan-1

----------------------------^

syntax error: element does not exist

admin@ncs(config)#

Appreciate your help.

Kerim

2 Replies 2

Jan Lindblad
Cisco Employee
Cisco Employee

What does the service YANG model look like? Does it augment /ncs:services? Or is it simply placing the service YANG at the root?

kerim mohammed
Level 3
Level 3

Now, that is the right questions! problem solved. thanks Jan.