Unify topology versions used in controller
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / packet-processing.yang
1 module packet-processing {
2     namespace "urn:opendaylight:packet:service";
3     prefix flow;
4
5     import yang-ext {prefix ext; revision-date "2013-07-09";}
6     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
7     import ietf-yang-types {prefix yang;revision-date "2010-09-24";} 
8     import opendaylight-l2-types {prefix types;revision-date "2013-08-27";}
9     
10     revision "2013-07-09" {
11         description "";
12     }
13
14     typedef cookie {
15         type uint32;
16     }
17
18     grouping raw-packet {
19         leaf ingress {
20                 type inv:node-connector-ref;
21         }
22         leaf payload {
23                 type binary;
24         }
25     }
26
27     grouping ethernet-packet {
28         leaf source {
29                 type yang:mac-address;
30         }
31
32         leaf destination {
33                 type yang:mac-address;
34         }
35     }
36
37
38     notification packet-received {
39         leaf cookie {
40                 type cookie;
41         }
42         uses raw-packet;
43     }
44
45     rpc transmit-packet {
46         input {
47             uses inv:node-context-ref;
48
49             leaf cookie {
50                 type cookie;
51             }
52             
53                 leaf egress {
54                         type inv:node-connector-ref;
55                 }
56                 uses raw-packet;
57         }
58     }
59 }