+ .getSupportedInterfaceCapability().values().size());
+ assertEquals(
+ "supported interface capability of tp-id XPDR1-CLIENT1 should contain 3 if-cap-type",
+ 3,
+ tpList.get(0)
+ .augmentation(
+ org.opendaylight.yang.gen.v1.http.org.openroadm.otn.network.topology.rev200529
+ .TerminationPoint1.class)
+ .getTpSupportedInterfaces()
+ .getSupportedInterfaceCapability().values().size());
+ List<SupportedInterfaceCapability> sicListClient3 = tpList.get(2)
+ .augmentation(
+ org.opendaylight.yang.gen.v1.http.org.openroadm.otn.network.topology.rev200529
+ .TerminationPoint1.class)
+ .getTpSupportedInterfaces()
+ .getSupportedInterfaceCapability().values().stream().collect(Collectors.toList());
+ for (SupportedInterfaceCapability supportedInterfaceCapability : sicListClient3) {
+ assertThat("tp should have 2 if-cap-type: if-10GE-ODU2e, if-10GE-ODU2",
+ String.valueOf(supportedInterfaceCapability.getIfCapType()),
+ either(containsString(String.valueOf(If10GEODU2e.class)))
+ .or(containsString(String.valueOf(If10GEODU2.class))));
+ }
+ List<SupportedInterfaceCapability> sicListClient1 = tpList.get(0)
+ .augmentation(
+ org.opendaylight.yang.gen.v1.http.org.openroadm.otn.network.topology.rev200529
+ .TerminationPoint1.class)
+ .getTpSupportedInterfaces()
+ .getSupportedInterfaceCapability().values().stream().collect(Collectors.toList());
+ for (SupportedInterfaceCapability supportedInterfaceCapability : sicListClient1) {
+ assertThat("tp should have 3 if-cap-type: if-10GE-ODU2e, if-10GE-ODU2, if-10GE",
+ String.valueOf(supportedInterfaceCapability.getIfCapType()),
+ either(containsString(String.valueOf(If10GEODU2e.class)))
+ .or(containsString(String.valueOf(If10GEODU2.class)))
+ .or(containsString(String.valueOf(If10GE.class))));
+ }