BUG-4063: Deprecate vs-tlv 37/28737/4
authorClaudio D. Gasparini <cgaspari@cisco.com>
Fri, 23 Oct 2015 13:49:21 +0000 (15:49 +0200)
committerClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 26 Oct 2015 10:16:53 +0000 (11:16 +0100)
Deprecate vs-tlv, Vendor Information TLV should be used instead.

Change-Id: Ie14a44647dcd83d09460061acce56143917eb54f
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
pcep/api/src/main/yang/pcep-types.yang
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/tlv/AbstractVendorSpecificTlvParser.java

index 91de6854b2f1ab0bc82e20acb7d99c99525ac33b..714cc7fb0c885d56d42865937e510bb60db8bc44 100644 (file)
@@ -158,6 +158,9 @@ module pcep-types {
     grouping vs-tlv {
         description "Vendor-specific TLV.";
         container vs-tlv {
+                status obsolete;
+                description "This model is obsolete, please use vendor-information-tlvs instead";
+
                 uses tlv;
 
                 leaf enterprise-number {
index 870740afc57b5059ce3939e74de8b5570ae4c8c3..cd4eaad4358b1a862dbc0845e9db1a738943dedc 100644 (file)
@@ -22,6 +22,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.typ
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vs.tlv.VsTlvBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vs.tlv.vs.tlv.VendorPayload;
 
+/**
+ * Vs-tlv model has been deprecated, vendor-information-tlv should be used instead.
+ * Therefore parsers/serializers wont be need it any more and this class is slated
+ * for removal in a future release.
+ */
+@Deprecated
 public abstract class AbstractVendorSpecificTlvParser implements TlvParser, TlvSerializer {
 
     public static final int TYPE = 27;