41102aed44dd4503c04762ea568e5d75ce4dbb81
[controller.git] / opendaylight / sal / yang-prototype / code-generator / samples / maven-code-gen-sample / src / main / yang / controller-network-ne.yang
1 module controller-openflow-ne {
2         yang-version 1;
3         namespace "urn:opendaylight:controller:network:openflow";
4         prefix "of";
5         
6         import controller-network {
7                 prefix cn;
8         }
9         import ietf-inet-types { prefix "inet"; }
10         
11         revision 2013-06-07 {
12            description "Initial demo";
13         }
14
15         augment "/cn:network/cn:network-elements/cn:network-element" {
16
17                 container flow-tables {
18                         list flow-table {
19
20                                 key "id";
21                                 leaf id {
22                                         type int32;
23                                 }
24
25                                 container flows {
26                                         list flow {
27                                                 key "name";
28                                                 leaf name {
29                                                         type string;
30                                                 }
31                                                 container match {
32                                                         leaf input-port {
33                                                                 type cn:tp-ref;
34                                                         }
35                                                         leaf nl-src {
36                                                                 type inet:ipv4-address;
37                                                         }
38                                                         leaf nl-dst {
39                                                                 type inet:ipv4-address;
40                                                         }
41                                                 }
42                                                 container actions {
43                                                         list action {
44                                                                 leaf type {
45                                                                         type string;
46                                                                 }
47                                                         }
48                                                 }
49                                         }
50                                 }
51                         }
52                 }
53         }
54 }