From 600ffd27e22a6eced165fed83fa90107274f044d Mon Sep 17 00:00:00 2001 From: Carmelo Cascone Date: Mon, 28 Feb 2022 21:38:30 -0800 Subject: [PATCH] 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) --- .../java/org/onosproject/net/behaviour/upf/UpfApplication.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/api/src/main/java/org/onosproject/net/behaviour/upf/UpfApplication.java b/core/api/src/main/java/org/onosproject/net/behaviour/upf/UpfApplication.java index 017de89d65..fed1eb9781 100644 --- a/core/api/src/main/java/org/onosproject/net/behaviour/upf/UpfApplication.java +++ b/core/api/src/main/java/org/onosproject/net/behaviour/upf/UpfApplication.java @@ -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");