blob: 40e8661196880a924893d6af807dc2fbe5e2fae1 [file] [log] [blame]
Jian Li4eb0cf42020-12-19 04:01:49 +09001/*
2 * Copyright 2020-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.kubevirtnode.api;
17
18public interface KubevirtPhyInterface {
19 /**
20 * Returns physical network name that this interface binds to.
21 *
22 * @return physical network name
23 */
24 String network();
25
26 /**
27 * Returns name of this physical interface.
28 *
29 * @return name of this physical interface
30 */
31 String intf();
32
33 /**
34 * Builder of kubevirt physical interface.
35 */
36 interface Builder {
37
38 KubevirtPhyInterface build();
39
40 /**
41 * Returns physical network that this physical interface connects with.
42 *
43 * @param network network name
44 * @return kubevirt physical interface builder
45 */
46 Builder network(String network);
47
48 /**
49 * Returns physical interface name.
50 *
51 * @param intf physical interface name of openstack node
52 * @return kubevirt physical interface builder
53 */
54 Builder intf(String intf);
55 }
56}