Sometimes we need to create multicast groups without replicas
Change-Id: I29dd07115efece0cc2d7d998317cfc3bfd7a1569
(cherry picked from commit 00552ba153a61e2d904e6fcf36d25330630bb8e1)
diff --git a/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMulticastGroupEntry.java b/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMulticastGroupEntry.java
index 7bb4c2d..41b93f6 100644
--- a/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMulticastGroupEntry.java
+++ b/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMulticastGroupEntry.java
@@ -24,7 +24,6 @@
import java.util.Collection;
import java.util.Set;
-import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
/**
@@ -161,7 +160,6 @@
public PiMulticastGroupEntry build() {
checkNotNull(groupId, "Multicast group ID must be set");
final ImmutableSet<PiPreReplica> replicas = replicaSetBuilder.build();
- checkArgument(!replicas.isEmpty(), "At least one replica must be defined");
return new PiMulticastGroupEntry(groupId, replicas);
}
}