Bug 6674 - the key of the serialization function registered by the vendor is not...
[openflowjava.git] / openflow-protocol-api / src / main / yang / openflow-augments.yang
old mode 100644 (file)
new mode 100755 (executable)
index 17de70c..4a60c37
-module openflow-augments {\r
-    namespace "urn:opendaylight:openflow:augments";\r
-    prefix "aug";\r
-\r
-    import ietf-inet-types {prefix inet;}\r
-    import ietf-yang-types {prefix yang;}\r
-    \r
-    import openflow-types {prefix oft;}\r
-    import openflow-protocol {prefix ofproto;}\r
-    import openflow-action {prefix ofaction;}\r
-    import openflow-instruction {prefix ofinstruction;}\r
-    import openflow-extensible-match {prefix oxm;}\r
-\r
-\r
-    revision "2013-10-02" {\r
-        description "Initial model";\r
-    }\r
-// OFP_MATCH AUGMENTS\r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf port-number {\r
-             type uint32;\r
-         }\r
-     }\r
-\r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf metadata {\r
-             type binary;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf mask {\r
-             type binary;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf mac-address {\r
-             type yang:mac-address;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf eth-type {\r
-             type oft:ether-type;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf vlan-vid {\r
-             type uint16;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf vlan-pcp {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf dscp {\r
-             type inet:dscp;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf ecn {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf protocol-number {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf ipv4-prefix {\r
-             type inet:ipv4-prefix;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf port {\r
-             type inet:port-number;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf icmpv4-type {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf icmpv4-code {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf op-code {\r
-             type uint16;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf ipv6-prefix {\r
-             type inet:ipv6-prefix;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf ipv6-flabel {\r
-             type inet:ipv6-flow-label;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf icmpv6-type {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf icmpv6-code {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf ipv6-address {\r
-             type inet:ipv6-address;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf mpls-label {\r
-             type uint32;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf tc {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf bos {\r
-             type boolean;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf isid {\r
-             type uint32;\r
-         }\r
-     }\r
-     \r
-     augment "/oxm:oxm-container/oxm:match-entries" {\r
-         leaf pseudo-field {\r
-             type bits {\r
-                 bit nonext {\r
-                     description "<No next header> encountered.";\r
-                     position 0;\r
-                 }\r
-                 bit esp {\r
-                     description "Encrypted Sec Payload header present.";\r
-                     position 1;\r
-                 }\r
-                 bit auth {\r
-                     description "Authentication header present.";\r
-                     position 2;\r
-                 }\r
-                 bit dest {\r
-                     description "1 or 2 dest headers present.";\r
-                     position 3;\r
-                 }\r
-                 bit frag {\r
-                     description "Fragment header present.";\r
-                     position 4;\r
-                 }\r
-                 bit router {\r
-                     description "Router header present.";\r
-                     position 5;\r
-                 }\r
-                 bit hop {\r
-                     description "Hop-by-hop header present.";\r
-                     position 6;\r
-                 }\r
-                 bit unrep {\r
-                     description "Unexpected repeats encountered.";\r
-                     position 7;\r
-                 }\r
-                 bit unseq {\r
-                     description "Unexpected sequencing encountered.";\r
-                     position 8;\r
-                     }                    \r
-             }\r
-         }\r
-     }\r
-\r
-// OFP_ACTION AUGMENTS\r
-     augment "/ofaction:actions" {\r
-         leaf port {\r
-             type oft:any-port-number;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf max-length {\r
-             description "Maximum packet length to be send to controller.";\r
-             type union {\r
-                 type uint16 {\r
-                     range "0..65294"; // 0..0xff0e\r
-                 }\r
-                 type enumeration {\r
-                     enum max {\r
-                         desription\r
-                             "maximum max_len value which can be used\r
-                             to request a specific byte length";\r
-                         value 65509; //0xffe5\r
-                     }\r
-                     enum no-buffer {\r
-                         description \r
-                             "indicates that no buffering should be\r
-                              applied and the whole packet is to be\r
-                              sent to the controller";\r
-                         value 65535; //0xffff\r
-                     }\r
-                 }\r
-             }\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf mpls-ttl {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf ethertype {\r
-             type oft:ether-type;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf queue-id {\r
-             type uint32;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf group-id {\r
-             type uint32;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf nw-ttl {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         uses oxm:oxm-fields;\r
-     }\r
-     \r
-     augment "/ofaction:actions" {\r
-         leaf experimenter {\r
-             type uint32;\r
-         }\r
-     }\r
-\r
-// OFP_TABLE_FEATURES_PROPERTIES AUGMENTS\r
-     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
-         list instruction-ids {\r
-             uses ofinstruction:instructions;\r
-         }\r
-     }\r
-\r
-     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
-         list next-table-ids {\r
-             leaf table-id {\r
-                 type uint8;\r
-             }\r
-         }\r
-     }\r
-\r
-     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
-         list action-ids {\r
-             uses ofaction:action-header;\r
-         }\r
-     }\r
-\r
-     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
-         list oxm-ids {\r
-             uses oxm:oxm-fields;\r
-         }\r
-     }\r
-\r
-     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
-         leaf experimenter {\r
-             type uint32;\r
-         }\r
-         leaf exp-type {\r
-             type uint32;\r
-         }\r
-         leaf data {\r
-             type binary;\r
-         }\r
-     }\r
-     \r
-// OFP_INSTRUCTION AUGMENTS\r
-     augment "/ofinstruction:instruction" {\r
-         leaf table-id {\r
-             type uint8;\r
-         }\r
-     }\r
-     \r
-     augment "/ofinstruction:instruction" {\r
-         leaf metadata {\r
-             type binary;\r
-         }\r
-         leaf metadata-mask {\r
-             type binary;\r
-         }\r
-     }\r
-     \r
-     augment "/ofinstruction:instruction" {\r
-         list actions {\r
-             uses ofaction:action-header;\r
-         }\r
-     }\r
-     \r
-     augment "/ofinstruction:instruction" {\r
-         leaf meter-id {\r
-             type uint32;\r
-         }\r
-     }\r
-     \r
-     augment "/ofinstruction:instruction" {\r
-         leaf experimenter {\r
-             type uint32;\r
-         }\r
-     }\r
-}
\ No newline at end of file
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+ module openflow-augments {
+    namespace "urn:opendaylight:openflow:augments";
+    prefix "aug";
+
+    import yang-ext {prefix ext;}
+    import ietf-inet-types {prefix inet;}
+    import ietf-yang-types {prefix yang;}
+
+    import openflow-types {prefix oft;}
+    import openflow-protocol {prefix ofproto;}
+    import openflow-action {prefix ofaction;}
+    import openflow-instruction {prefix ofinstruction;}
+    import openflow-extensible-match {prefix oxm;}
+
+    revision "2015-02-25" {
+        description "#NOT_PUBLISHED# OpenFlow 1.3 - augments model.
+                    Please visit
+                    https://wiki.opendaylight.org/view/File:OpenFlow_Protocol_Library_-_Project_documentation.pdf
+                     - Augmentation Tables chapter";
+    }
+
+// OFP_MATCH AUGMENTS
+     augment "/oxm:oxm-container/oxm:match-entry-value" {
+         ext:augment-identifier "experimenter-id-match-entry";
+         case experimenter-id-case {
+             container experimenter {
+                 leaf experimenter {
+                     type oft:experimenter-id;
+                 }
+             }
+         }
+     }
+
+// OFP_ACTION AUGMENTS
+     augment "/ofaction:action-container/ofaction:action-choice" {
+         ext:augment-identifier "experimenter-id-action";
+         case experimenter-id-case {
+             container experimenter {
+                 leaf experimenter {
+                     type oft:experimenter-id;
+                 }
+                 leaf sub-type {
+                     type identityref {
+                         base ofaction:experimenter-action-sub-type;
+                     }
+                 }
+             }
+         }
+     }
+
+// OFP_TABLE_FEATURES_PROPERTIES AUGMENTS
+     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
+         ext:augment-identifier "instruction-related-table-feature-property";
+         uses ofinstruction:instructions-grouping;
+     }
+     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
+         ext:augment-identifier "next-table-related-table-feature-property";
+         list next-table-ids {
+             config false;
+             leaf table-id {
+                 type uint8;
+             }
+         }
+     }
+     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
+         ext:augment-identifier "action-related-table-feature-property";
+         uses ofaction:actions-grouping;
+     }
+     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
+         ext:augment-identifier "oxm-related-table-feature-property";
+         uses oxm:match-entries-grouping;
+     }
+     augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
+         ext:augment-identifier "experimenter-id-table-feature-property";
+         leaf experimenter {
+             type oft:experimenter-id;
+         }
+         leaf exp-type {
+             type uint32;
+         }
+     }
+
+// OFP_INSTRUCTION AUGMENTS
+     augment "/ofinstruction:instruction-container/ofinstruction:instruction-choice" {
+         case experimenter-id-case {
+             container experimenter {
+                 leaf experimenter-id {
+                     type oft:experimenter-id;
+                 }
+             }
+         }
+     }
+
+// OFP_QUEUE_PROP AUGMENTS
+     augment "/ofproto:queue-prop-container/ofproto:queue-property" {
+         ext:augment-identifier "rate-queue-property";
+         leaf rate {
+             type uint16;
+         }
+     }
+     augment "/ofproto:queue-prop-container/ofproto:queue-property" {
+         ext:augment-identifier "experimenter-id-queue-property";
+         leaf experimenter {
+             type oft:experimenter-id;
+         }
+     }
+
+// OFP_ERROR_AUGMENTS (only experimenter till OpenFlow v1.3)
+     augment "/ofproto:error-message" {
+         ext:augment-identifier "experimenter-id-error";
+         leaf experimenter {
+             type oft:experimenter-id;
+         }
+     }
+
+// OFP_METER_BAND AUGMENTS
+     augment "/ofproto:meter-band-container/ofproto:meter-band/ofproto:meter-band-experimenter-case/ofproto:meter-band-experimenter" {
+         ext:augment-identifier "experimenter-id-meter-band";
+         leaf experimenter {
+             type oft:experimenter-id;
+         }
+         leaf sub-type {
+             type identityref {
+                 base oft:experimenter-meter-band-sub-type;
+             }
+         }
+     }
+}