Class MsgBuilderUtil
- java.lang.Object
-
- org.opendaylight.protocol.pcep.pcc.mock.spi.MsgBuilderUtil
-
public final class MsgBuilderUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pcerr
createErrorMsg(@NonNull PCEPErrors pcepErrors, long srpId)
static Pcerr
createErrorMsg(@NonNull PCEPErrors pcepErrors, org.opendaylight.yangtools.yang.common.Uint32 srpId)
static Lsp
createLsp(org.opendaylight.yangtools.yang.common.Uint32 plspId, boolean sync, Optional<Tlvs> tlvs, boolean isDelegatedLspe)
static Lsp
createLsp(org.opendaylight.yangtools.yang.common.Uint32 plspId, boolean sync, Optional<Tlvs> tlvs, boolean isDelegatedLsp, boolean remove)
static Tlvs
createLspTlvs(org.opendaylight.yangtools.yang.common.Uint32 lspId, boolean symbolicPathName, String tunnelEndpoint, String tunnelSender, String extendedTunnelAddress, Optional<byte[]> symbolicName)
static Tlvs
createLspTlvs(org.opendaylight.yangtools.yang.common.Uint32 lspId, boolean symbolicPathName, String tunnelEndpoint, String tunnelSender, String extendedTunnelAddress, Optional<byte[]> symbolicName, Optional<org.opendaylight.yangtools.yang.common.Uint64> lspDBVersion)
static Optional<Tlvs>
createLspTlvsEndofSync(@NonNull org.opendaylight.yangtools.yang.common.Uint64 dbVersion)
static Path
createPath(List<Subobject> subobjects)
static Pcrpt
createPcRtpMessage(Lsp lsp, Optional<Srp> srp, Path path)
static Srp
createSrp(org.opendaylight.yangtools.yang.common.Uint32 srpId)
static byte[]
getDefaultPathName(String address, org.opendaylight.yangtools.yang.common.Uint32 lspId)
static Path
reqToRptPath(Requests request)
static Path
updToRptPath(Path path)
-
-
-
Method Detail
-
createLsp
public static Lsp createLsp(org.opendaylight.yangtools.yang.common.Uint32 plspId, boolean sync, Optional<Tlvs> tlvs, boolean isDelegatedLsp, boolean remove)
-
createLsp
public static Lsp createLsp(org.opendaylight.yangtools.yang.common.Uint32 plspId, boolean sync, Optional<Tlvs> tlvs, boolean isDelegatedLspe)
-
createSrp
public static Srp createSrp(org.opendaylight.yangtools.yang.common.Uint32 srpId)
-
createLspTlvs
public static Tlvs createLspTlvs(org.opendaylight.yangtools.yang.common.Uint32 lspId, boolean symbolicPathName, String tunnelEndpoint, String tunnelSender, String extendedTunnelAddress, Optional<byte[]> symbolicName)
-
createLspTlvs
public static Tlvs createLspTlvs(org.opendaylight.yangtools.yang.common.Uint32 lspId, boolean symbolicPathName, String tunnelEndpoint, String tunnelSender, String extendedTunnelAddress, Optional<byte[]> symbolicName, Optional<org.opendaylight.yangtools.yang.common.Uint64> lspDBVersion)
-
createLspTlvsEndofSync
public static Optional<Tlvs> createLspTlvsEndofSync(@NonNull org.opendaylight.yangtools.yang.common.Uint64 dbVersion)
-
createErrorMsg
public static Pcerr createErrorMsg(@NonNull PCEPErrors pcepErrors, org.opendaylight.yangtools.yang.common.Uint32 srpId)
-
createErrorMsg
public static Pcerr createErrorMsg(@NonNull PCEPErrors pcepErrors, long srpId)
-
getDefaultPathName
public static byte[] getDefaultPathName(String address, org.opendaylight.yangtools.yang.common.Uint32 lspId)
-
-