Skip to content

Lighty NETCONF Simulator | Unable to Add Custom model in Lighty NETCONF Simulator — What Is the Correct Process for Updating YANG Models? #305

Description

@techprakashverma

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:

  1. 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.";
}
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions