I am currently working with the lighty-netconf-simulator and would like to understand; Can we modify or fully replace the yang models of the simulator with some custom or 3gpp specific YANG models.
If yes, is any guide or documentation that I can follow?
I have tried to extend the existing YANG model, and below are the steps I followed:
- I created a new custom-node-augment YANG file under the following path:
lighty-netconf-simulator/examples/models/lighty-example-network-topology-device-model/src/main/yang/
with the following definition:
leaf custom-temprature {
type decimal64 {
fraction-digits 2;
}
description "Custom temperature value.";
}
- I then imported the newly created custom-node-augment model into:
lighty-netconf-simulator/examples/models/lighty-example-network-topology-device-model/src/main/yang/network-topology-rpcs@2023-09-27.yang
After rebuilding and running the simulator, I can see the custom-node-augment listed under the capabilities section. However, the newly added attribute (custom-temprature) does not appear in the RESTCONF response, and I am unable to access it through the API.
I am currently working with the lighty-netconf-simulator and would like to understand; Can we modify or fully replace the yang models of the simulator with some custom or 3gpp specific YANG models.
If yes, is any guide or documentation that I can follow?
I have tried to extend the existing YANG model, and below are the steps I followed:
lighty-netconf-simulator/examples/models/lighty-example-network-topology-device-model/src/main/yang/with the following definition:
lighty-netconf-simulator/examples/models/lighty-example-network-topology-device-model/src/main/yang/network-topology-rpcs@2023-09-27.yangAfter rebuilding and running the simulator, I can see the custom-node-augment listed under the capabilities section. However, the newly added attribute (custom-temprature) does not appear in the RESTCONF response, and I am unable to access it through the API.