X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fflow-types.yang;fp=opendaylight%2Fmd-sal%2Fmodel%2Fmodel-flow-base%2Fsrc%2Fmain%2Fyang%2Fflow-types.yang;h=cd364b5402425fe63cc7c35bb78fed79b6a519ac;hp=0000000000000000000000000000000000000000;hb=fe024ad74b8656c3ee61b9ddff6009a779aa2189;hpb=437c1bdb967072319e81774bdcf570b2fb0f7b89 diff --git a/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang b/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang new file mode 100644 index 0000000000..cd364b5402 --- /dev/null +++ b/opendaylight/md-sal/model/model-flow-base/src/main/yang/flow-types.yang @@ -0,0 +1,128 @@ +module opendaylight-flow-types { + namespace "urn:opendaylight:flow:types"; + prefix flow; + + import ietf-inet-types {prefix inet;} + import opendaylight-match-types {prefix match;} + import ietf-yang-types {prefix yang;} + + + revision "2013-08-19" { + description "Initial revision of flow service"; + } + + grouping action { + choice action { + case output-action { + leaf-list output-node-connector { + type inet:uri; + } + } + + case controller-action { + leaf max-length { + type uint16 { + range "0..65294"; + } + } + } + + case set-queue-action { + leaf queue { + type string; // TODO: define queues + } + } + + case pop-mpls-action { + leaf ethernet-type { + type uint16; // TODO: define ethertype type + } + } + + case set-mpls-ttl-action { + leaf mpls-ttl { + type uint8; + } + } + + case set-nw-ttl-action { + leaf nw-ttl { + type uint8; + } + } + + case push-pbb-action { + + } + + case push-mpls-action { + + } + + case push-vlan-action { + + } + } + } + + grouping flow { + container match { + uses match:match; + } + list action { + key "order"; + leaf order { + type int32; + } + uses action; + } + leaf priority { + type uint16; + } + + leaf idle-timeout { + type uint16; + } + + leaf hard-timeout { + type uint16; + } + + leaf cookie { + type uint64; + } + } + + grouping flow-statistics { + leaf packet-count { + type yang:counter64; + } + + leaf byte-count { + type yang:counter64; + } + + container duration { + leaf second { + type yang:counter64; + } + leaf nanosecond { + type yang:counter64; + } + } + } + + grouping flow-table-statistics { + leaf active { + type yang:counter64; + } + + leaf lookup { + type yang:counter64; + } + + leaf matched { + type yang:counter64; + } + } +} \ No newline at end of file