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
commite0ff3ddc1c7a146c18f1ae4f15e0e4f30ed18a9f (patch)
tree14f1dbfaa041b51767c21b8231f420d4170594c4 /v3po/api/src
parent85fd3da7efba703d473c8120c1680b65be28f565 (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.