blob: b3e0061a273cb9ce8dab29bee10822b5efea59a9 [file] [log] [blame]
Jian Li43dc9ca2020-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
Jian Li304dca42020-12-27 23:22:46 +090018/**
19 * Representation of a KubeVirt physical interface used in KubeVirt networking service.
20 */
Jian Li43dc9ca2020-12-19 04:01:49 +090021public interface KubevirtPhyInterface {
22 /**
23 * Returns physical network name that this interface binds to.
24 *
25 * @return physical network name
26 */
27 String network();
28
29 /**
30 * Returns name of this physical interface.
31 *
32 * @return name of this physical interface
33 */
34 String intf();
35
36 /**
37 * Builder of kubevirt physical interface.
38 */
39 interface Builder {
40
41 KubevirtPhyInterface build();
42
43 /**
44 * Returns physical network that this physical interface connects with.
45 *
46 * @param network network name
47 * @return kubevirt physical interface builder
48 */
49 Builder network(String network);
50
51 /**
52 * Returns physical interface name.
53 *
54 * @param intf physical interface name of openstack node
55 * @return kubevirt physical interface builder
56 */
57 Builder intf(String intf);
58 }
59}