commit | ee60f76ae19abeb2162315dd141ce44233880076 | [log] [tgz] |
---|---|---|
author | Carmelo Cascone <carmelo@opennetworking.org> | Mon Feb 28 21:38:30 2022 -0800 |
committer | Carmelo Cascone <carmelo@opennetworking.org> | Mon Feb 28 21:38:30 2022 -0800 |
tree | 071d04c0a770b375e8e1d4348dc0cb8a75a19c58 | |
parent | 64462f11a5db6d8be83d5a2e0cec620c88095e58 [diff] |
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
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 017de89..fed1eb9 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 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");