public final class VBridgeManager extends Object implements org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener, VtnVbridgeService, VtnMacTableService, VtnVlanMapService, VtnMacMapService
VBridgeManager
provides services related to vBridge.Constructor and Description |
---|
VBridgeManager(VTNManagerProvider provider)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Future<org.opendaylight.yangtools.yang.common.RpcResult<AddVlanMapOutput>> |
addVlanMap(AddVlanMapInput input)
Configure a VLAN mapping in the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetMacMappedHostOutput>> |
getMacMappedHost(GetMacMappedHostInput input)
Get a list of hosts where mapping is actually active based on
MAC mapping configured in the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetVlanMapOutput>> |
getVlanMap(GetVlanMapInput input)
Search for a VLAN mapping with the specified VLAN mapping configuration
in the specified vBridge.
|
void |
initRpcServices(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcReg,
CompositeAutoCloseable regs)
Register RPC services.
|
void |
ownershipChanged(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipChange change)
Invoked when the ownership status of the vBridge has been changed.
|
void |
removeEntity(VBridgeIdentifier ident)
Remove the entity of the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMacEntryOutput>> |
removeMacEntry(RemoveMacEntryInput input)
Remove the specified MAC address information from the MAC address table
in the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
removeVbridge(RemoveVbridgeInput input)
Remove the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveVlanMapOutput>> |
removeVlanMap(RemoveVlanMapInput input)
Remove the specified VLAN mappings from the vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<SetMacMapOutput>> |
setMacMap(SetMacMapInput input)
Configure MAC mapping in the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<SetMacMapAclOutput>> |
setMacMapAcl(SetMacMapAclInput input)
Configure MAC mapping in the specified vBridge.
|
void |
shutdown()
Shut down the vBridge entity management.
|
void |
updateEntity(VBridgeIdentifier ident,
VbridgeConfig config)
Update the entity of the specified vBridge.
|
Future<org.opendaylight.yangtools.yang.common.RpcResult<UpdateVbridgeOutput>> |
updateVbridge(UpdateVbridgeInput input)
Create or modify the specified vBridge.
|
public VBridgeManager(VTNManagerProvider provider)
provider
- A VTN Manager provider service.public void initRpcServices(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcReg, CompositeAutoCloseable regs)
rpcReg
- A RpcProviderRegistry
service instance.regs
- A CompositeAutoCloseable
instance to store
RPC registration.public void updateEntity(VBridgeIdentifier ident, VbridgeConfig config)
The entity of the specified vBridge will be created if not present. If present, the specified configuration will be applied to the existing entity of the vBridge.
ident
- The identifier for the target vBridge.config
- The configuration of the vBridge.public void removeEntity(VBridgeIdentifier ident)
ident
- The identifier for the target vBridge.public void shutdown()
public void ownershipChanged(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipChange change)
ownershipChanged
in interface org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener
change
- An EntityOwnershipChange
instance.public Future<org.opendaylight.yangtools.yang.common.RpcResult<UpdateVbridgeOutput>> updateVbridge(UpdateVbridgeInput input)
updateVbridge
in interface VtnVbridgeService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> removeVbridge(RemoveVbridgeInput input)
removeVbridge
in interface VtnVbridgeService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMacEntryOutput>> removeMacEntry(RemoveMacEntryInput input)
removeMacEntry
in interface VtnMacTableService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<AddVlanMapOutput>> addVlanMap(AddVlanMapInput input)
addVlanMap
in interface VtnVlanMapService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<RemoveVlanMapOutput>> removeVlanMap(RemoveVlanMapInput input)
removeVlanMap
in interface VtnVlanMapService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<GetVlanMapOutput>> getVlanMap(GetVlanMapInput input)
getVlanMap
in interface VtnVlanMapService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<SetMacMapOutput>> setMacMap(SetMacMapInput input)
setMacMap
in interface VtnMacMapService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<SetMacMapAclOutput>> setMacMapAcl(SetMacMapAclInput input)
setMacMapAcl
in interface VtnMacMapService
input
- Input of the RPC.Future
associated with the RPC task.public Future<org.opendaylight.yangtools.yang.common.RpcResult<GetMacMappedHostOutput>> getMacMappedHost(GetMacMappedHostInput input)
getMacMappedHost
in interface VtnMacMapService
input
- Input of the RPC.Future
associated with the RPC task.Copyright © 2018 OpenDaylight. All rights reserved.