I am trying to create a service template and plan to use leafref capability to access the already created node of a F5 LTM and update the description of the node.
Performing a Make gives me the following error
make clean all
rm -rf …/load-dir/*
/opt/ncs/current/bin/ncsc ls nodedesc-ann.yang > /dev/null 2>&1 && echo "-a nodedesc-ann.yang"
–yangpath yang --yangpath …/…/f5-bigip/src/yang -c -o …/load-dir/nodedesc.fxs yang/nodedesc.yang
yang/nodedesc.yang:6: warning: imported module ietf-inet-types not used
yang/nodedesc.yang:41: error: tailf-ned-f5-bigip:net in the path for node-test at yang/nodedesc.yang:38 is not found
nodedesc contains errors
I have included the F5 ned path in the Makefile aswell.
YANG File:
module nodedesc {
namespace “http://com/example/nodedesc”;
prefix nodedesc;
import ietf-inet-types {
prefix inet;
}
import tailf-ncs {
prefix ncs;
}
import tailf-common {
prefix tailf;
}
import tailf-ned-f5-bigip {
prefix bigip;
}
augment /ncs:services {
list nodedesc {
key “device name”;
uses ncs:service-data;
ncs:servicepoint "nodedesc";
leaf name {
type string;
}
leaf device {
type leafref {
path "/ncs:devices/ncs:device/ncs:name";
}
}
leaf node-name {
tailf:info "Nodes configured on Device";
type leafref {
path "deref(../device)/../ncs:config/bigip:net/bigip:interface/bigip:name";
}
}
leaf node-description {
type string;
}
}
}
}