I want to allocate one node (leaf) data to other node.
container IOSXR {
when "/ncs:devices/ncs:device[ncs:name=current()/../Switch]/ncs:platform/ncs:name='ios-xr'";
list GigabitEthernet {
key "GigabitEthernet";
leaf GigabitEthernet {
tailf:info "GigabitEthernet Interface ID";
mandatory true;
type leafref {
path "deref(../../../Switch)/../ncs:config/cisco-ios-xr:interface/cisco-ios-xr:GigabitEthernet/cisco-ios-xr:id";
}
}
uses Trunk;
}
}
Under Trunk Grouping I have tried to link GigabitEthernet to new leaf “intf-number” as per below;-
leaf intf-number {
{
**tailf:link "/ncs:devices/ncs:device[name=current()/../../../Switch]/ncs:config/cisco-ios-xr:interface/GigabitEthernet[id=current()/cisco-ios-xr:id]";**
tailf:info "GigabitEthernet Interface ID";
mandatory true;
type leafref {
path "deref(../../../../../../Switch)/../ncs:config/cisco-ios-xr:interface/cisco-ios-xr:GigabitEthernet/cisco-ios-xr:id";
}
}
Above tailf:link is not working fine…
Need your support to achieve below target
**GigabitEthernet = 0/0/0/0 (Working fine)**
**intf-number=GigabitEthernet (Support / Suggestions requested)**
Regards,
Bjron