summaryrefslogtreecommitdiffstats
path: root/v3po/api/src
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-10-20 14:38:27 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-10-20 15:10:39 +0000
commitbe37eab49d25c4ed179acfd2d4c896ac1a70de1c (patch)
tree5632f6048f0868932436bb5b17a245be204bff85 /v3po/api/src
parentb9191c1a856d4f0c89a63a20c3927a95ab7e1bdc (diff)
HONEYCOMB-268: Fix order of union types in vpp-index
ODL does not uses builders for unions anymore. Unused builders will be removed in subsequent commit. Change-Id: Ib4e77fed19f591f6f0dc836d66067a2827d2e202 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src')
-rw-r--r--v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/OpaqueIndexBuilder.java (renamed from v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/OpaqueIndexBuilder.java)9
-rw-r--r--v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/VppNodeBuilder.java (renamed from v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/VppNodeBuilder.java)10
-rw-r--r--v3po/api/src/main/yang/vpp-classifier.yang8
3 files changed, 11 insertions, 16 deletions
diff --git a/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/OpaqueIndexBuilder.java b/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/OpaqueIndexBuilder.java
index 01f088469..2ff7f823f 100644
--- a/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/OpaqueIndexBuilder.java
+++ b/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/OpaqueIndexBuilder.java
@@ -1,4 +1,4 @@
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.classifier.rev150603;
+package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.classifier.rev161214;
/**
@@ -13,12 +13,7 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.cla
public class OpaqueIndexBuilder {
public static OpaqueIndex getDefaultInstance(java.lang.String defaultValue) {
- try {
- final long value = Long.parseLong(defaultValue); // u32 value
- return new OpaqueIndex(value);
- } catch (NumberFormatException e) {
- return new OpaqueIndex(VppNodeBuilder.getDefaultInstance(defaultValue));
- }
+ throw new java.lang.UnsupportedOperationException("Not yet implemented");
}
}
diff --git a/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/VppNodeBuilder.java b/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/VppNodeBuilder.java
index 4ae04d48f..b339435d4 100644
--- a/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev150603/VppNodeBuilder.java
+++ b/v3po/api/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/vpp/classifier/rev161214/VppNodeBuilder.java
@@ -1,4 +1,4 @@
-package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.classifier.rev150603;
+package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.classifier.rev161214;
/**
@@ -13,13 +13,7 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.cla
public class VppNodeBuilder {
public static VppNode getDefaultInstance(java.lang.String defaultValue) {
- if (PacketHandlingAction.Deny.toString().equalsIgnoreCase(defaultValue)) {
- return new VppNode(PacketHandlingAction.Deny);
- } else if (PacketHandlingAction.Permit.toString().equalsIgnoreCase(defaultValue)) {
- return new VppNode(PacketHandlingAction.Permit);
- } else {
- return new VppNode(new VppNodeName(defaultValue));
- }
+ throw new java.lang.UnsupportedOperationException("Not yet implemented");
}
}
diff --git a/v3po/api/src/main/yang/vpp-classifier.yang b/v3po/api/src/main/yang/vpp-classifier.yang
index 8bf939933..ea2788289 100644
--- a/v3po/api/src/main/yang/vpp-classifier.yang
+++ b/v3po/api/src/main/yang/vpp-classifier.yang
@@ -3,6 +3,12 @@ module vpp-classifier {
namespace "urn:opendaylight:params:xml:ns:yang:vpp:classifier";
prefix "vpp-classifier";
+ revision "2016-12-14" {
+ description
+ "This revision adds the following new features:
+ - updates order of union types for opaque-index";
+ }
+
revision "2015-06-03" {
description
"Initial revision of model for VPP packet classifier.
@@ -54,8 +60,8 @@ module vpp-classifier {
typedef opaque-index {
type union {
- type vpp-node;
type uint32;
+ type vpp-node;
}
description
"Defines opaque-index type - metadata that can be attached to session-hit packets.