blob: 6e384d7ede1de4b3f1c8c641df9e3e8a1f22074e [file] [log] [blame]
Jian Lib9642832021-01-08 03:18:35 +09001/*
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 */
16package org.onosproject.kubevirtnetworking.api;
17
18import org.onlab.packet.MacAddress;
19
20public interface KubevirtPortAdminService extends KubevirtPortService {
21
22 /**
23 * Creates a kubevirt port with the given information.
24 *
25 * @param port a new kubevirt port
26 */
27 void createPort(KubevirtPort port);
28
29 /**
30 * Updates the kubevirt port with the given information.
31 *
32 * @param port the updated kubevirt port
33 */
34 void updatePort(KubevirtPort port);
35
36 /**
37 * Removes the kubevirt port.
38 *
39 * @param mac MAC address bound with the port
40 */
41 void removePort(MacAddress mac);
42
43 /**
44 * Clears the existing ports.
45 */
46 void clear();
47}