Merge "creating a default subnet"
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / port-service.yang
1 module sal-port {
2     namespace "urn:opendaylight:port:service";
3     prefix port;
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 opendaylight-port-types {prefix port-type;revision-date "2013-09-25";}
8
9     revision "2013-11-07" {
10         description "Initial revision of port service";
11     }        
12     
13     grouping node-port {
14         uses "inv:node-context-ref";
15         
16         uses port-type:ofp-port-mod;
17     }
18
19     /** Base configuration structure **/
20     grouping port-update {
21         uses "inv:node-context-ref";
22
23         container original-port {
24             uses port-type:ofp-port-mod;
25         }
26         container updated-port {
27             uses port-type:ofp-port-mod;
28         }
29     }
30
31     rpc update-port {
32         input {
33             uses port-update;
34         }
35     }
36      
37     rpc get-port {
38         output {
39             uses port-type:flow-capable-port;
40         }
41     }  
42     
43     notification port-removed {
44         uses node-port;
45     }
46 }