Introduce top-level pom file.
[mdsal.git] / binding / maven-sal-api-gen-plugin / src / test / resources / wadl-gen / controller-openflow.yang
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module controller-openflow {
9
10     namespace "urn:opendaylight:controller:openflow";
11     prefix "of";
12     import controller-network {prefix cn;}
13     
14     
15     revision 2013-05-20 {
16        description "Initial demo";
17     }
18
19    
20
21
22
23     typedef datapath-id {
24         type string {
25             length 16;
26         }
27     }
28
29
30     augment "/cn:network/cn:topologies/cn:topology/cn:types" {
31         leaf openflow {type string;}
32     }
33
34     augment "/cn:network/cn:topologies/cn:topology/cn:links/cn:link/cn:source" {
35         when "../../../cn:types/of:openflow";
36
37         leaf logical-port {
38             type int32;
39         }
40     }
41
42     augment "/cn:network/cn:topologies/cn:topology/cn:links/cn:link/cn:destination" {
43         when "../../../cn:types/of:openflow";
44
45         leaf logical-port {
46             type int32;
47         }
48     }
49
50     augment "/cn:network/cn:topologies/cn:topology/cn:nodes/cn:node" {
51         when "../../../cn:types/of:openflow";
52         leaf datapath-id {
53             type datapath-id;
54         }
55     }
56     
57     augment "/cn:network/cn:network-elements/cn:network-element" {
58         leaf datapath-id {
59             type datapath-id;
60         }
61
62         container ports {
63             list port {
64                 key "logical-port-id";
65                 
66                 leaf logical-port-id {
67                     type int32;
68                 }
69
70                 // Should be replaced with ref to interface
71                 leaf physical-name {
72                     type string;
73                 }
74             }
75         }
76         container flow-tables {
77             list flow-table {
78                 key "flow-table-id";
79                 leaf flow-table-id {
80                     type string;
81                 }
82
83             }
84         }
85     }
86 }