X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fsamples%2Fmaven-code-gen-sample%2Fsrc%2Fmain%2Fyang%2Fcontroller-network-ne.yang;h=8b576c3ce96a43d29480acb1cfe6f7a810666b4e;hp=41102aed44dd4503c04762ea568e5d75ce4dbb81;hb=refs%2Fchanges%2F43%2F543%2F1;hpb=a84e3c483f492477ace9f6da6908754cb257c225 diff --git a/opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/controller-network-ne.yang b/opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/controller-network-ne.yang index 41102aed44..8b576c3ce9 100644 --- a/opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/controller-network-ne.yang +++ b/opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/controller-network-ne.yang @@ -1,54 +1,54 @@ module controller-openflow-ne { - yang-version 1; - namespace "urn:opendaylight:controller:network:openflow"; - prefix "of"; - - import controller-network { - prefix cn; - } - import ietf-inet-types { prefix "inet"; } - - revision 2013-06-07 { - description "Initial demo"; - } + yang-version 1; + namespace "urn:opendaylight:controller:network:openflow"; + prefix "of"; + + import controller-network { + prefix cn; + } + import ietf-inet-types { prefix "inet"; } + + revision 2013-06-07 { + description "Initial demo"; + } - augment "/cn:network/cn:network-elements/cn:network-element" { + augment "/cn:network/cn:network-elements/cn:network-element" { - container flow-tables { - list flow-table { + container flow-tables { + list flow-table { - key "id"; - leaf id { - type int32; - } + key "id"; + leaf id { + type int32; + } - container flows { - list flow { - key "name"; - leaf name { - type string; - } - container match { - leaf input-port { - type cn:tp-ref; - } - leaf nl-src { - type inet:ipv4-address; - } - leaf nl-dst { - type inet:ipv4-address; - } - } - container actions { - list action { - leaf type { - type string; - } - } - } - } - } - } - } - } + container flows { + list flow { + key "name"; + leaf name { + type string; + } + container match { + leaf input-port { + type cn:tp-ref; + } + leaf nl-src { + type inet:ipv4-address; + } + leaf nl-dst { + type inet:ipv4-address; + } + } + container actions { + list action { + leaf type { + type string; + } + } + } + } + } + } + } + } } \ No newline at end of file