2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.pcep.segment.routing;
10 import com.google.common.base.MoreObjects;
11 import java.net.InetSocketAddress;
12 import org.kohsuke.MetaInfServices;
13 import org.opendaylight.protocol.pcep.PCEPCapability;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.Tlvs1Builder;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.sr.pce.capability.tlv.SrPceCapabilityBuilder;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.open.object.open.TlvsBuilder;
17 import org.opendaylight.yangtools.yang.common.Uint8;
20 public class PCEPSegmentRoutingCapability implements PCEPCapability {
22 public void setCapabilityProposal(final InetSocketAddress address, final TlvsBuilder builder) {
23 builder.addAugmentation(new Tlvs1Builder()
24 .setSrPceCapability(new SrPceCapabilityBuilder()
25 .setNFlag(Boolean.FALSE)
26 .setXFlag(Boolean.FALSE)
33 public String toString() {
34 return MoreObjects.toStringHelper(this).toString();