Allow building UpfApplication matching only on slice_id

According to the UP4 logical pipeline, the only required match field is
slice_id. All other fields are ternary, hence optional.

Change-Id: I265b43621d6469087e57fda5eb6a4ba350853e9d
(cherry picked from commit ee60f76ae19abeb2162315dd141ce44233880076)
This commit is contained in:
Carmelo Cascone 2022-02-28 21:38:30 -08:00
parent 8944d7c1c9
commit 600ffd27e2

View File

@ -261,9 +261,6 @@ public final class UpfApplication implements UpfEntity {
}
public UpfApplication build() {
checkArgument(ipPrefix != null || l4PortRange != null ||
ipProto != null,
"At least one match field is required");
checkNotNull(sliceId, "Slice ID must be provided");
checkNotNull(appId, "Application ID must be provided");
checkNotNull(priority, "Priority must be provided");