BUG 4138: Fix RROLabelSubobjectParser 67/25367/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 17 Aug 2015 14:37:33 +0000 (16:37 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 18 Aug 2015 06:22:44 +0000 (06:22 +0000)
Change-Id: I647c5b980d16a03ca010b5d632b5bea8414ff0e5
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/subobject/RROLabelSubobjectParser.java

index b7da1446b7590a51082447659d7816a459c556bf..9e12ba0eb4fe7773d94ea6e59a3a9f54c96e58b0 100644 (file)
@@ -72,7 +72,7 @@ public class RROLabelSubobjectParser implements RROSubobjectParser, RROSubobject
         Preconditions.checkNotNull(subobject.getSubobjectType(), "Subobject type cannot be empty.");
         final Label label = ((LabelCase) subobject.getSubobjectType()).getLabel();
         final ByteBuf body = Unpooled.buffer();
-        this.registry.serializeLabel(label.isUniDirectional(), false, label.getLabelType(), body);
+        this.registry.serializeLabel(label.isUniDirectional(), label.isGlobal(), label.getLabelType(), body);
         RROSubobjectUtil.formatSubobject(TYPE, body, buffer);
     }
 }