public final class VTNManagerService extends Object
VTNManagerService provides interfaces to control VTN Manager.| Constructor and Description |
|---|
VTNManagerService(MdsalUtils md,
org.opendaylight.controller.sal.binding.api.RpcConsumerRegistry rpc)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VbridgeConfig |
getBridgeConfig(String tname,
String bname)
Return the current configuration of the specified vBridge.
|
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VbridgeConfig> |
getBridgeConfigPath(String tname,
String bname)
Return an instance identifier that specifies the vBridge configuration.
|
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Vtn> |
getTenantPath(String tname)
Return an instance identifier that specifies the VTN.
|
boolean |
hasBridge(String tname)
Determine whether the specified VTN contains at least one vBridge or
not.
|
int |
removeBridge(String tname,
String bname)
Remove the specified vBridge.
|
int |
removeInterface(RemoveVinterfaceInput input)
Remove the specified virtual interface.
|
int |
removePortMap(RemovePortMapInput input)
Remove the port mapping configuration from the specified virtual
interface.
|
int |
removeTenant(String name)
Remove the specified VTN.
|
int |
setPortMap(SetPortMapInput input)
Configure a port mapping into the virtual interface specified by the
given RPC input.
|
int |
updateBridge(String tname,
String bname,
String desc,
VnodeUpdateMode mode)
Create or update the specified vBridge.
|
int |
updateInterface(UpdateVinterfaceInput input)
Create or update the specified virtual interface.
|
int |
updateTenant(String name,
VnodeUpdateMode mode)
Create or update a VTN with default parameters.
|
public VTNManagerService(MdsalUtils md, org.opendaylight.controller.sal.binding.api.RpcConsumerRegistry rpc)
md - A MdsalUtils instance.rpc - A RpcConsumerRegistry instance.public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Vtn> getTenantPath(String tname)
tname - The name of the VTN.InstanceIdentifier instance.public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VbridgeConfig> getBridgeConfigPath(String tname, String bname)
tname - The name of the VTN.bname - The name of the vBridge.InstanceIdentifier instance.public int updateTenant(String name, VnodeUpdateMode mode)
name - The name of the VTN.mode - A VnodeUpdateMode instance that specifies how to
update the VTN.
null implies VnodeUpdateMode.UPDATE.HttpURLConnection.HTTP_OK indicates
successful completion.public int removeTenant(String name)
name - The name of the VTN.HttpURLConnection.HTTP_OK indicates
successful completion.public boolean hasBridge(String tname)
tname - The name of the VTN.true if the specified VTN contains at least one
vBridge. false otherwise.public int updateBridge(String tname, String bname, String desc, VnodeUpdateMode mode)
tname - The name of the VTN.bname - The name of the vBridge.desc - A brief description about the vBridge.mode - A VnodeUpdateMode instance that specifies how to
update the vBridge.
null implies VnodeUpdateMode.UPDATE.HttpURLConnection.HTTP_OK indicates
successful completion.public int removeBridge(String tname, String bname)
tname - The name of the VTN.bname - The name of the vBridge.HttpURLConnection.HTTP_OK indicates
successful completion.public VbridgeConfig getBridgeConfig(String tname, String bname)
tname - The name of the VTN.bname - The name of the vBridge.VbridgeConfig instance if the specified vBridge is
present. null otherwise.public int updateInterface(UpdateVinterfaceInput input)
input - A UpdateVinterfaceInput instance.HttpURLConnection.HTTP_OK indicates
successful completion.public int removeInterface(RemoveVinterfaceInput input)
input - A RemoveVinterfaceInput instance.HttpURLConnection.HTTP_OK indicates
successful completion.public int setPortMap(SetPortMapInput input)
input - A SetPortMapInput instance.HttpURLConnection.HTTP_OK indicates
successful completion.public int removePortMap(RemovePortMapInput input)
input - A RemovePortMapInput instance.HttpURLConnection.HTTP_OK indicates
successful completion.Copyright © 2018 OpenDaylight. All rights reserved.