7bb5faf7d0be768432042a3729b4b4e8930e6743
[openflowjava.git] / openflow-extension-nicira / src / main / yang / nicira-action.yang
1 module nicira-action {
2     yang-version 1;
3
4     namespace "urn:opendaylight:openflow:extension:nicira:action";
5     prefix "nicira-action";
6
7     import openflow-action {prefix ofaction;}
8     import openflow-types {prefix oft;}
9     import yang-ext {prefix ext; revision-date "2013-07-09";}
10
11     description 
12         "Nicira openflow extensions of action.";
13
14     revision "2014-04-21" {
15         description "Initial revision";
16     }
17
18     grouping ofj-nx-action-reg-load-grouping {
19         container action-reg-load {
20             leaf ofs_nbits {
21                 type uint16;
22             }
23             leaf dst {
24                 type uint32;
25             }
26             leaf value {
27                 type uint64;
28             }
29         }
30     }
31     grouping ofj-nx-action-reg-move-grouping {
32         container action-reg-move {
33             leaf n_bits {
34                 type uint16;
35             }
36             leaf src_ofs {
37                 type uint16;
38             }
39             leaf dst_ofs {
40                 type uint16;
41             }
42             leaf src {
43                 type uint32;
44             }
45             leaf dst {
46                 type uint32;
47             }
48         }
49     }
50
51     augment "/ofaction:actions-container/ofaction:action" {
52         ext:augment-identifier "ofj-aug-nx-action";
53         uses ofj-nx-action-reg-load-grouping;
54         uses ofj-nx-action-reg-move-grouping;
55     }
56
57 }