mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-04 11:51:43 +02:00
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:
parent
8944d7c1c9
commit
600ffd27e2
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user