use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.dpn.teps.info.tunnel.end.points.TzMembershipBuilder in project genius by opendaylight.
the class ItmUtils method removeTransportZoneMembership.
public static List<TzMembership> removeTransportZoneMembership(TunnelEndPoints endPts, List<TzMembership> zones) {
LOG.trace(" RemoveTransportZoneMembership TEPs {}, Membership to be removed {} ", endPts, zones);
List<TzMembership> existingTzList = new ArrayList<>(endPts.getTzMembership());
for (TzMembership membership : zones) {
existingTzList.remove(new TzMembershipBuilder().setZoneName(membership.getZoneName()).build());
}
LOG.debug("Modified Membership List {}", existingTzList);
return existingTzList;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.dpn.teps.info.tunnel.end.points.TzMembershipBuilder in project genius by opendaylight.
the class ItmUtils method createTransportZoneMembership.
public static List<TzMembership> createTransportZoneMembership(String zoneName) {
List<TzMembership> zones = new ArrayList<>();
zones.add(new TzMembershipBuilder().setZoneName(zoneName).build());
return zones;
}
Aggregations