X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fmdsal-netconf-connector%2Fsrc%2Fmain%2Fyang%2Fnetconf-mdsal-mapper.yang;fp=opendaylight%2Fnetconf%2Fmdsal-netconf-connector%2Fsrc%2Fmain%2Fyang%2Fnetconf-mdsal-mapper.yang;h=b1d04106d70dd2b3f6c35a3bf614a2ed4097fda8;hp=0000000000000000000000000000000000000000;hb=c2eb34d0fe909f382bc4d9201d955e471ae1d80a;hpb=8d17b7aca17f10005f5f3da1b80d2e442fd0168c diff --git a/opendaylight/netconf/mdsal-netconf-connector/src/main/yang/netconf-mdsal-mapper.yang b/opendaylight/netconf/mdsal-netconf-connector/src/main/yang/netconf-mdsal-mapper.yang new file mode 100644 index 0000000000..b1d04106d7 --- /dev/null +++ b/opendaylight/netconf/mdsal-netconf-connector/src/main/yang/netconf-mdsal-mapper.yang @@ -0,0 +1,50 @@ +module netconf-mdsal-mapper { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:mdsal:mapper"; + prefix "nmm"; + + import netconf-northbound-mapper { prefix nnm; revision-date 2015-01-14; } + import opendaylight-md-sal-dom { prefix md-sal-dom; revision-date 2013-10-28; } + import config { prefix config; revision-date 2013-04-05; } + + organization "Cisco Systems, Inc."; + + description + "This module contains the base YANG definitions for + an MD-SAL mapper implementation"; + + revision "2015-01-14" { + description + "Initial revision."; + } + + identity netconf-mdsal-mapper { + base config:module-type; + config:provided-service nnm:netconf-northbound-mapper; + } + + augment "/config:modules/config:module/config:configuration" { + case netconf-mdsal-mapper { + when "/config:modules/config:module/config:type = 'netconf-mdsal-mapper'"; + + container root-schema-service { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity md-sal-dom:schema-service; + } + } + } + + container dom-broker { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity md-sal-dom:dom-async-data-broker; + } + } + } + } + } + +}