Created experimenter subtype for vendor's actions
[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     identity nxm-nx-reg-load {
19         base ofaction:experimenter-action-sub-type;
20     }
21     identity nxm-nx-reg-move {
22         base ofaction:experimenter-action-sub-type;
23     }
24
25     grouping ofj-nx-action-reg-load-grouping {
26         container action-reg-load {
27             leaf ofs_nbits {
28                 type uint16;
29             }
30             leaf dst {
31                 type uint32;
32             }
33             leaf value {
34                 type uint64;
35             }
36         }
37     }
38     grouping ofj-nx-action-reg-move-grouping {
39         container action-reg-move {
40             leaf n_bits {
41                 type uint16;
42             }
43             leaf src_ofs {
44                 type uint16;
45             }
46             leaf dst_ofs {
47                 type uint16;
48             }
49             leaf src {
50                 type uint32;
51             }
52             leaf dst {
53                 type uint32;
54             }
55         }
56     }
57
58     augment "/ofaction:actions-container/ofaction:action" {
59         ext:augment-identifier "ofj-aug-nx-action";
60         uses ofj-nx-action-reg-load-grouping;
61         uses ofj-nx-action-reg-move-grouping;
62     }
63
64 }