Skip to content

YANG Library with Datastores and Schema Mount

Ladislav Lhotka edited this page Mar 29, 2017 · 2 revisions
{
  "ietf-yang-library:yang-library": {
    "module": [
      { "name": "ietf-interfaces",
        "revision": "2014-05-08"
        ...
      },
      { "name": "ietf-ip",
        "revision": "2014-06-16"
        ...
      },
      { "name": "ietf-network-instance",
        "revision": "2017-03-13",
        ...
      },
      { "name": "ietf-routing",
        "revision": "2016-11-04",
        ...
      }
    ],
    "datastore": [
      { "name": "running",
        "schema": [ "config-data" ],
        ...
      },
      { "name": "intended",
        "schema": [ "config-data" ],
        ...
      },
      { "name": "applied",
        "schema": [ "config-data" ],
        ...
      },
      { "name": "operational",
        "schema": [ "config-data", "state-data" ]
        ...
      }
    ],
    "schema": [
      { "name": "config-data",
        "modules": [ "ietf-interfaces", "ietf-ip", "ietf-network-instance" ],
        "mount": [
          { "target": "/ietf-network-instance:network-instances/network-instance/root",
            "schema": "config-routing",
            "parent-reference": [ "ietf-interfaces" ]
          }
        ]
      },
      { "name": "config-routing",
        "modules": [ "ietf-routing" ]        
      },
      { "name": "state-data",
        ...
      }
    ]
  }
}
        
Clone this wiki locally