Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
firstline1
titleModel used for illustration purposes
linenumberstrue
module gnodeb {
    yang-version 1.1;
    namespace "urn:gnodeb:test";

    prefix gnb;

    description
      "Yang model for gnodeb";
    revision "2019-12-03" {
        description
          "initial version";
    }

    container cells {
        list cellinfolist {
            key cell-id;
            leaf cell-id {
                type uint16;
            }
            leaf cell-uuid {
                type uint32;
            }
			leaf cell-description {
                type string;
                description
                  "Possible name or description";
            }
        }
    }
}




To access local SDNC use http://localhost:8282/apidoc/explorer/index.html 

with credentials as : - admin / Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U


Once the above model is added to a mount point ( say PNFDemo ) on SDNC this model should show up on the GUI, with methods for operating on all public leaves as below.To access local SDNC use http://localhost:8282/apidoc/explorer/index.html with credentials as : - admin / Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U

All of these are well documented with examples.


Info

For this use case we do not need to worry about creating mount points or supplying our models, as these would be made available beforehand.


Alternatively, these can be tested via Postman as :

...

For Field filtering we can use RESTConf "fields" option :

Check RESTConf fields filtering for examples on using filtering option on RESTConf.

...