-module openflow-augments {\r
+/*\r
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+ \r
+ module openflow-augments {\r
namespace "urn:opendaylight:openflow:augments";\r
prefix "aug";\r
\r
augment "/oxm:oxm-container/oxm:match-entries" {\r
ext:augment-identifier "pseudo-field-match-entry";\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
+ type oft:ipv6-exthdr-flags;\r
}\r
}\r
\r
type uint32;\r
}\r
}\r
+ // OF1.0 structures\r
+ augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {\r
+ ext:augment-identifier "vlan-vid-action";\r
+ leaf vlan-vid {\r
+ type uint16;\r
+ }\r
+ }\r
+ augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {\r
+ ext:augment-identifier "vlan-pcp-action";\r
+ leaf vlan-pcp {\r
+ type uint8;\r
+ }\r
+ }\r
+ augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {\r
+ ext:augment-identifier "dl-address-action";\r
+ leaf dl-address {\r
+ type yang:mac-address;\r
+ }\r
+ }\r
+ augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {\r
+ ext:augment-identifier "nw-tos-action";\r
+ leaf nw-tos {\r
+ type uint8;\r
+ }\r
+ }\r
+ augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {\r
+ ext:augment-identifier "ip-address-action";\r
+ leaf ip-address {\r
+ type inet:ipv4-address;\r
+ }\r
+ }\r
\r
// OFP_TABLE_FEATURES_PROPERTIES AUGMENTS\r
augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {\r
ext:augment-identifier "next-table-related-table-feature-property";\r
list next-table-ids {\r
+ key "table-id";\r
leaf table-id {\r
type uint8;\r
}\r
type binary;\r
}\r
}\r
+ \r
+// OFP_ERROR_AUGMENTS (only experimenter till OpenFlow v1.3)\r
+ augment "/ofproto:error-message" {\r
+ ext:augment-identifier "experimenter-error";\r
+ leaf exp_type {\r
+ type uint16;\r
+ }\r
+ leaf experimenter {\r
+ type uint32;\r
+ }\r
+ }\r
+\r
}
\ No newline at end of file