-
Notifications
You must be signed in to change notification settings - Fork 324
Open
Labels
is:bugBug description.Bug description.status:invalidIssue is not reproducible or the behavior is intended.Issue is not reproducible or the behavior is intended.
Description
Hi Michal,
We are trying to mark a few extensions for some parameters, we could mark this importing the extensions module in the yang file and marking the leaf nodes,
we wanted to understand if we could create module with deviation with which we could add extensions, so rather than modifying multiple yang files we could use a module with deviation to mark extensions, but we see that it fails with unknown prefix error,
here is the extensions yang file
extension ru-it {
description
"Indicates the parameter is modifiable at RU init time only and hence requires a RU restart(reset).";
}
extension rt {
description
"Indicates the parameter is modifiable at run time and does not require a restart.";
}
extension sa {
description
"Indicates the parameter is applicable only for standalone deployment.";
}
extension nsa {
description
"Indicates the parameter is applicable only for non standalone deployment.";
}
extension sa-nsa {
description
"Indicates the parameter is applicable only for both standalone and non standalone deployment.";
}
extension spec-ref {
description
"Specify the specification reference if the parameter is taken from any specification.";
argument "spec-ref";
}
}We are trying to use it via deviate,
module _ran-nr-nrm-gnbcucp-ext-test {
yang-version 1.1;
namespace "urn:3gpp:sa5:_ran-nr-nrm-gnbcucp-ext-test";
prefix "gnbcucp-ext-test";
import _3gpp-common-managed-element { prefix me3gpp; }
import _3gpp-nr-nrm-gnbcucpfunction { prefix gnbcucp3gpp; }
import _ran-nr-nrm-yang-extensions { prefix yextran; }
deviation "/me3gpp:ManagedElement/gnbcucp3gpp:GNBCUCPFunction/gnbcucp3gpp:attributes/gnbcucp3gpp:gNBId" {
deviate add {
yextran:rt;
}
}
}when we try to load the yang in sr_install_module , with verbose log i am seeing below
[VRB] Searching for "_3gpp-nr-nrm-gnbcucpfunction" in "/opt/sysrepo/yang".
[VRB] Loading schema from "/tmp/yangs/_3gpp-nr-nrm-gnbcucpfunction.yang" file.
[ERR] Invalid prefix "yextran" used for extension instance identifier.
[2026-03-17 09:17:14.082575] [INFO] Extension module install failed: libyang error
[2026-03-17 09:17:14.082595] [INFO] Session stopped.
[INF] Connection 1 destroyed.
we need to understand if we can add extensions via deviate,
Thanks,
Srikanth
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
is:bugBug description.Bug description.status:invalidIssue is not reproducible or the behavior is intended.Issue is not reproducible or the behavior is intended.