blob: 5c98f0922f0aeeb9ae888a97c7fbf5636c29286c [file] [log] [blame]
Daniele Moro5e66f982021-06-11 16:41:48 +02001/*
2 * Copyright 2021-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.net.behaviour.upf;
18
19import com.google.common.annotations.Beta;
20import org.onosproject.net.driver.HandlerBehaviour;
21
Daniele Moro5e66f982021-06-11 16:41:48 +020022/**
23 * Provides means to update the device forwarding state to implement a 3GPP
24 * User Plane Function. An implementation of this API should not write state
25 * directly to the device, but instead, always rely on core ONOS subsystems
26 * (e.g., FlowRuleService, GroupService, etc).
27 */
28@Beta
29public interface UpfProgrammable extends HandlerBehaviour, UpfDevice {
30 /**
31 * Apps are expected to call this method as the first one when they are ready
32 * to install PDRs and FARs.
33 *
34 * @return True if initialized, false otherwise.
35 */
36 boolean init();
37}