Model updated with descriptions
[openflowjava.git] / openflow-protocol-api / src / main / yang / openflow-action.yang
index 43157f2b2aa4a4a30596a8a0b4d4006b60829cef..3f1168bd75799efbf48c55de3080efb5d14eb372 100644 (file)
@@ -1,15 +1,23 @@
-module openflow-action {
+/*
+ * 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-action {
     namespace "urn:opendaylight:openflow:common:action";
     prefix "ofaction";
 
     import openflow-types { prefix oft; }
 
     revision "2013-07-31" {
-        description "Initial model";
+        description "OpenFlow 1.3 - action model";
     }
 
     identity output {
-        description " Output to switch port. ";
+        description " Output to switch port. (both OF v1.0 and v1.3)";
         base oft:action;
     }
     identity copy_ttl_out {
@@ -78,17 +86,66 @@ module openflow-action {
     }
     
     container actions-container {
-        uses action-header;
+        uses actions;
     }
     
-    grouping action-header {
-        container action {
-            leaf type {
-                type identityref {
-                    base oft:action;
+    grouping actions {
+        list actions-list {
+            key "action";
+            container action {
+                leaf type {
+                    type identityref {
+                        base oft:action;
+                    }
                 }
             }
         }
     }
     
+    // OF1.0 structures
+    identity set_vlan_vid {
+        description "Set the 802.1q VLAN id (OF v1.0).";
+        base oft:action;
+    }
+    identity set_vlan_pcp {
+        description "Set the 802.1q priority (OF v1.0).";
+        base oft:action;
+    }
+    identity strip_vlan {
+        description "Strip the 802.1q header (OF v1.0).";
+        base oft:action;
+    }
+    identity set_dl_src {
+        description "Ethernet source address (OF v1.0).";
+        base oft:action;
+    }
+    identity set_dl_dst {
+        description "Ethernet destination address (OF v1.0).";
+        base oft:action;
+    }
+    identity set_nw_src {
+        description "IP source address (OF v1.0).";
+        base oft:action;
+    }
+    identity set_nw_dst {
+        description "IP destination address (OF v1.0).";
+        base oft:action;
+    }
+    identity set_nw_tos {
+        description "IP ToS (DSCP field, 6 bits) (OF v1.0).";
+        base oft:action;
+    }
+    identity set_tp_src {
+        description "TCP/UDP source port (OF v1.0).";
+        base oft:action;
+    }
+    identity set_tp_dst {
+        description "TCP/UDP destination port (OF v1.0).";
+        base oft:action;
+    }
+    identity enqueue {
+        description "Output to queue (OF v1.0).";
+        base oft:action;
+    }
+
 }
\ No newline at end of file