Introducing Openflow NX Extension infrastructure and NX_RESUBMIT action in ovsdb...
[ovsdb.git] / of-extension / nx-ofjava / src / main / yang / ovs-nx-config.yang
1 module ovs-nx-config {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:ovs:nx:config";
4     prefix "ovs-nx";
5
6     import config {prefix config; revision-date 2013-04-05;}
7     import ovs-nx-api-config {prefix ovs-nx-api-config;revision-date 2014-07-11;}
8
9     description
10         "Nicira extensions in openflow library.";
11
12     revision "2014-07-11" {
13         description
14             "Initial revision";
15     }
16
17     identity ovs-nx {
18         base config:module-type;
19         config:java-name-prefix NiciraExtensionProvider;
20     }
21
22     augment "/config:modules/config:module/config:configuration" {
23         case ovs-nx {
24             when "/config:modules/config:module/config:type = 'ovs-nx'";
25
26             container nx-codec-registrator {
27                 uses config:service-ref {
28                     refine type {
29                         mandatory true;
30                         config:required-identity ovs-nx-api-config:nx-codec-registrator;
31                     }
32                 }
33             }
34         }
35     }
36 }