Hi Team,
We a have yang model where all common data structures are kept in a yang file, let’s say common.yang with commonContainer as a top level container.
from common.yang file
module common
{
container commonContainer {
...
}
}
We also have symlinks to this common structure in another yang file let’s say featureSepc.yang file
from featureSepciyang
module featureSpec
{
import common
{
prefix COMMON
}
container root
{
**tailf:symlink common {**
** tailf:path "/COMMON:common/COMMON:commonContainer";**
** }**
}
}
We have exposed both source commonContainer xpath and symlinked commonContainer xpaths to customers.
As symlink is being deprecated in latest confd versions, we have chosen to remove symlink ang use augment around the original module.
as shown below.
module common
{
augment root {
container commonContainer {
...
}
}
}
because of this solution, we would retain symlinked xpath(/root/commonContainer), but we are the losing source xpath(/commonContainer).
Is there any other solution to this symlink removal, without loosing source/symlinked xpaths.
Thanks in Advance.
Regards,
Usha