blob: 0c6667afa56597c7276fe407a391fdfa84e505c4 [file] [log] [blame]
Hyunsun Moonf4ba44f2017-03-14 03:25:52 +09001/*
2 * Copyright 2017-present Open Networking Laboratory
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 */
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
43 */
44 void removeAgent(NetworkId networkId);
45
46 /**
47 * Starts the agent for the given network.
48 *
49 * @param networkId virtual network identifier
50 */
51 void startAgent(NetworkId networkId);
52
53 /**
54 * Stops the agent for the given network.
55 *
56 * @param networkId virtual network identifier
57 */
58 void stopAgent(NetworkId networkId);
59}