blob: 77309e9b4be3182e56925d56780ef38e5261b458 [file] [log] [blame]
Jian Lie6312162018-03-21 21:41:00 +09001/*
2 * Copyright 2018-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.openstacknode.api;
17
18public interface OpenstackPhyInterface {
19
20 /**
21 * Returns physical network name that this interface binds to.
22 *
23 * @return physical network name
24 */
25 String network();
26
27 /**
28 * Returns name of this physical interface.
29 *
30 * @return name of this physical interface
31 */
32 String intf();
33
34 /**
35 * Builder of openstack physical interface.
36 */
37 interface Builder {
38
39 /**
40 * Builds an immutable openstack physical interface instance.
41 *
42 * @return openstack physical interface instance
43 */
44 OpenstackPhyInterface build();
45
46 /**
47 * Returns physical network that this physical interface connects with.
48 *
49 * @param network network name
50 * @return openstack physical interface builder
51 */
52 Builder network(String network);
53
54 /**
55 * Returns physical interface name.
56 *
57 * @param intf physical interface name of openstack node
58 * @return openstack physical interface builder
59 */
60 Builder intf(String intf);
61 }
62}