Skip to content
Ladislav Lhotka edited this page Dec 6, 2016 · 5 revisions

Content of top-level YANG library (for physical device)

{
  "ietf-yang-library:modules-state": {
    "module-set-id": "b7e8eae3ee9612161d5863144009fe74e12e671a",
    "module": [
      {
        "name": "ietf-interfaces",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-interfaces",
        "revision": "2014-05-08",
        "conformance-type": "implement"
      },
      {
        "name": "ietf-ip",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-ip",
        "revision": "2014-06-16",
        "conformance-type": "implement"
      },
      {
        "name": "ietf-routing",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-routing",
        "revision": "2016-11-04",
        "conformance-type": "implement"
      },
      {
        "name": "ietf-ipv4-unicast-routing",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-ipv4-unicast-routing",
        "revision": "2016-11-04",
        "conformance-type": "implement"
      },
      {
        "name": "ietf-logical-network-element",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-logical-network-element",
        "revision": "2016-10-21",
        "conformance-type": "implement"
      },
      {
        "name": "ietf-yang-types",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
        "revision": "2013-07-15",
        "conformance-type": "import"
      },
      {
        "name": "ietf-inet-types",
        "namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
        "revision": "2013-07-15",
        "conformance-type": "import"
      }
    ]
  }
}

Specification of schema mounts

"ietf-yang-schema-mount:schema-mounts": {
  "mount-point": [
    {
      "module": "ietf-logical-network-element",
      "name": "root",
      "use-schema": [
        {
          "name": "lne-root"
        }
      ]
    }
  ],
  "schema": [
    {
      "name": "lne-root",
      "module": [
        {
          "name": "ietf-interfaces",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-interfaces",
          "revision": "2014-05-08",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-ip",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-ip",
          "revision": "2014-06-16",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-network-instance",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-network-instance",
          "revision": "2016-10-27",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-yang-types",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
          "revision": "2013-07-15",
          "conformance-type": "import"
        },
        {
          "name": "ietf-inet-types",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
          "revision": "2013-07-15",
          "conformance-type": "import"
        }
      ],
      "mount-point": {
        "module": "ietf-network-instance",
        "name": "root",
        "use-schema": [
          {
            "name": "ni-root"
          }
        ]
      }
    },
    {
      "name": "ni-root",
      "parent-references": [
        "ietf-interfaces"
      ],
      "module": [
        {
          "name": "ietf-routing",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-routing",
          "revision": "2016-11-04",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-ipv4-unicast-routing",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-ipv4-unicast-routing",
          "revision": "2016-11-04",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-ipv6-unicast-routing",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-ipv6-unicast-routing",
          "revision": "2016-11-04",
          "conformance-type": "implement",
          "submodule": [
        	  {
        	    "name": "ietf-ipv6-router-advertisements",
        	    "revision": "2016-11-04",
        	  }
        	]
        },
        {
          "name": "ietf-ospf",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-ospf",
          "revision": "2016-10-31",
          "conformance-type": "implement"
        },
        {
          "name": "ietf-yang-types",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
          "revision": "2013-07-15",
          "conformance-type": "import"
        },
        {
          "name": "ietf-inet-types",
          "namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
          "revision": "2013-07-15",
          "conformance-type": "import"
        }
      ]
    }
  ]
}
Clone this wiki locally