BUG-2184 Fix config.yang module(add type as a key for modules list) 57/12257/1
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 20 Oct 2014 10:46:28 +0000 (12:46 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 27 Oct 2014 11:39:28 +0000 (11:39 +0000)
Netconf server requires the type and name when e.g. deleting data so the yang model did not fully reflect the implementation

Change-Id: If4b04fe1ec427cff0f52d743cc1440fc7fe143d2
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
(cherry picked from commit 024c0e5fc9f20f29b894ed4075034797634a4714)

opendaylight/config/config-api/src/main/yang/config.yang

index a0a4292adf406a597fa120cdbf869c5b4cc0e0c6..17a235937894cc560b1c80c4f2e565deed4fe6d4 100644 (file)
@@ -138,7 +138,7 @@ module config {
             "Top level container encapsulating configuration of all modules.";
 
         list module {
-            key "name";
+            key "type name";
             leaf name {
                 description "Unique module instance name";
                 type string;