Fix occasional NPEs in Connection manager
[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 opendaylight-inventory {prefix inv;}
6     import ietf-inet-types {prefix inet;}
7     import ietf-yang-types {prefix yang;} 
8     import opendaylight-l2-types {prefix types;}
9     
10     revision "2013-07-09" {
11         description "";
12     }
13
14     grouping raw-packet {
15         leaf ingress {
16                 type inv:node-connector-ref;
17         }
18         leaf payload {
19                 type binary;
20         }
21     }
22
23     grouping ethernet-packet {
24         leaf source {
25                 type yang:mac-address;
26         }
27
28         leaf destination {
29                 type yang:mac-address;
30         }
31     }
32
33
34     notification packet-received {
35         uses raw-packet;
36     }
37
38     rpc transmit-packet {
39         input {
40                 leaf egress {
41                         type inv:node-connector-ref;
42                 }
43                 uses raw-packet;
44         }
45     }
46 }