Display all arguments when updating LSP. 54/5554/3
authorDana Kutenicsova <dkutenic@cisco.com>
Thu, 6 Mar 2014 14:05:15 +0000 (15:05 +0100)
committerDana Kutenicsova <dkutenic@cisco.com>
Thu, 6 Mar 2014 14:12:37 +0000 (15:12 +0100)
Change-Id: Ic1af266e00de12b6d3000981a57af2a003dc97d9
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful02TopologySessionListener.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListener.java

index 92789f0e7f3af50d7d2f9c57115fa0014903c299..40f7cd7cbef1e63a5db766516e14b1fe9e3791f2 100644 (file)
@@ -119,6 +119,11 @@ public class Stateful02TopologySessionListener extends AbstractTopologySessionLi
 
                        final ReportedLspBuilder rlb = new ReportedLspBuilder();
                        rlb.addAugmentation(ReportedLsp1.class, new ReportedLsp1Builder().setLsp(r.getLsp()).build());
+                       if (r.getPath() != null) {
+                               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev131024.pcep.client.attributes.path.computation.client.reported.lsp.PathBuilder pb = new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev131024.pcep.client.attributes.path.computation.client.reported.lsp.PathBuilder();
+                               pb.fieldsFrom(r.getPath());
+                               rlb.setPath(pb.build());
+                       }
                        boolean solicited = false;
 
                        if (id.getValue() != 0) {
index e867022c499848564e95d1d6a99824d65891d9df..782711051f74c50ac84da7aaf8bb5e7a77b1f5eb 100644 (file)
@@ -112,6 +112,11 @@ final class Stateful07TopologySessionListener extends AbstractTopologySessionLis
 
                        final ReportedLspBuilder rlb = new ReportedLspBuilder();
                        rlb.addAugmentation(ReportedLsp1.class, new ReportedLsp1Builder(r).build());
+                       if (r.getPath() != null) {
+                               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev131024.pcep.client.attributes.path.computation.client.reported.lsp.PathBuilder pb = new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev131024.pcep.client.attributes.path.computation.client.reported.lsp.PathBuilder();
+                               pb.fieldsFrom(r.getPath());
+                               rlb.setPath(pb.build());
+                       }
                        boolean solicited = false;
 
                        final Srp srp = r.getSrp();
@@ -183,8 +188,8 @@ final class Stateful07TopologySessionListener extends AbstractTopologySessionLis
                rb.setSrp(new SrpBuilder().setOperationId(nextRequest()).setProcessingRule(Boolean.TRUE).build());
                rb.setLsp(new LspBuilder().setAdministrative(input.getArguments().isAdministrative()).setDelegate(Boolean.TRUE).setPlspId(
                                new PlspId(0L)).setTlvs(
-                               new TlvsBuilder().setSymbolicPathName(
-                                               new SymbolicPathNameBuilder().setPathName(new SymbolicPathName(input.getName().getBytes(Charsets.UTF_8))).build()).build()).build());
+                                               new TlvsBuilder().setSymbolicPathName(
+                                                               new SymbolicPathNameBuilder().setPathName(new SymbolicPathName(input.getName().getBytes(Charsets.UTF_8))).build()).build()).build());
 
                final PcinitiateMessageBuilder ib = new PcinitiateMessageBuilder(MESSAGE_HEADER);
                ib.setRequests(ImmutableList.of(rb.build()));