blob: 77309e9b4be3182e56925d56780ef38e5261b458 [file] [log] [blame]
/*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.openstacknode.api;
public interface OpenstackPhyInterface {
/**
* Returns physical network name that this interface binds to.
*
* @return physical network name
*/
String network();
/**
* Returns name of this physical interface.
*
* @return name of this physical interface
*/
String intf();
/**
* Builder of openstack physical interface.
*/
interface Builder {
/**
* Builds an immutable openstack physical interface instance.
*
* @return openstack physical interface instance
*/
OpenstackPhyInterface build();
/**
* Returns physical network that this physical interface connects with.
*
* @param network network name
* @return openstack physical interface builder
*/
Builder network(String network);
/**
* Returns physical interface name.
*
* @param intf physical interface name of openstack node
* @return openstack physical interface builder
*/
Builder intf(String intf);
}
}