blob: 6c66b0a9a3d162d43fa092ec5e5363e545a8c735 [file] [log] [blame]
Hyunsun Moonf4ba44f2017-03-14 03:25:52 +09001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Hyunsun Moonf4ba44f2017-03-14 03:25:52 +09003 *
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 */
16package org.onosproject.ofagent.api;
17
18import org.onosproject.incubator.net.virtual.NetworkId;
19
20/**
21 * Service for administering the inventory of OpenFlow agents.
22 */
23public interface OFAgentAdminService {
24
25 /**
26 * Creates an OpenFlow agent for a given virtual network with given controllers.
27 *
28 * @param ofAgent the new ofagent
29 */
30 void createAgent(OFAgent ofAgent);
31
32 /**
33 * Updates the agent.
34 *
35 * @param ofAgent updated ofagent
36 */
37 void updateAgent(OFAgent ofAgent);
38
39 /**
40 * Removes the OpenFlow agent for the given virtual network.
41 *
42 * @param networkId virtual network identifier
Hyunsun Moon53381e82017-03-28 19:58:28 +090043 * @return removed ofagent; null if it fails
Hyunsun Moonf4ba44f2017-03-14 03:25:52 +090044 */
Hyunsun Moon53381e82017-03-28 19:58:28 +090045 OFAgent removeAgent(NetworkId networkId);
Hyunsun Moonf4ba44f2017-03-14 03:25:52 +090046
47 /**
48 * Starts the agent for the given network.
49 *
50 * @param networkId virtual network identifier
51 */
52 void startAgent(NetworkId networkId);
53
54 /**
55 * Stops the agent for the given network.
56 *
57 * @param networkId virtual network identifier
58 */
59 void stopAgent(NetworkId networkId);
60}