public static List<TerminationPoint> createTpList(boolean withTpnTsPool) {
SupportedInterfaceCapability supCapa = new SupportedInterfaceCapabilityBuilder()
- .setIfCapType(IfOCHOTU4ODU4.class)
+ .setIfCapType(IfOCHOTU4ODU4.VALUE)
.build();
Map<SupportedInterfaceCapabilityKey,SupportedInterfaceCapability> supInterCapaList =
new HashMap<>();
.setSupportedInterfaceCapability(supInterCapaList)
.build();
XpdrTpPortConnectionAttributesBuilder xtpcaBldr = new XpdrTpPortConnectionAttributesBuilder()
- .setRate(ODU4.class);
+ .setRate(ODU4.VALUE);
if (withTpnTsPool) {
Set<Uint16> tsPool = new HashSet<>();
for (int i = 0; i < 80; i++) {
tpnPool.add(Uint16.valueOf(i));
}
OdtuTpnPool odtuTpn = new OdtuTpnPoolBuilder()
- .setOdtuType(ODTU4TsAllocated.class)
+ .setOdtuType(ODTU4TsAllocated.VALUE)
.setTpnPool(tpnPool).build();
xtpcaBldr.setOdtuTpnPool(ImmutableMap.of(odtuTpn.key(),odtuTpn));
}
int networkPortNb, int clientPortNb,
XpdrNodeTypes xpdrNodeType) {
for (int i = 1; i <= networkPortNb; i++) {
- Set<Class<? extends SupportedIfCapability>> supportedIntf = new HashSet<>();
- supportedIntf.add(IfOCH.class);
+ Set<SupportedIfCapability> supportedIntf = new HashSet<>();
+ supportedIntf.add(IfOCH.VALUE);
MappingBuilder mappingBldr = new MappingBuilder()
.setLogicalConnectionPoint("XPDR1-NETWORK" + i)
.setPortDirection("bidirectional")
mappingMap.put(mapping.key(),mapping);
}
for (int i = 1; i <= clientPortNb; i++) {
- Set<Class<? extends SupportedIfCapability>> supportedIntf = new HashSet<>();
- supportedIntf.add(If100GE.class);
+ Set<SupportedIfCapability> supportedIntf = new HashSet<>();
+ supportedIntf.add(If100GE.VALUE);
Mapping mapping = new MappingBuilder()
.setLogicalConnectionPoint("XPDR1-CLIENT" + i)
.setPortDirection("bidirectional")