public interface VxlanHandler extends HandlerFacet
Modifier and Type | Method and Description |
---|---|
void |
addMacAddresses(TunnelIndex tunnelIndex,
Vni vni,
Set<MacAddress> macAddresses)
Adds the given set of remote MAC addresses to the specified tunnel/VNI; facilitates static learning.
|
void |
bindTunnelsToVNI(Vni vni,
Set<TunnelIndex> tunnelIndexes)
Binds the given set of tunnels to the specified VNI.
|
void |
bindVlansToVNI(Vni vni,
Set<VlanPortPair> vlanPorts)
Binds the given set of VLAN/port pairs to the specified VNI.
|
void |
clearMacAddresses(TunnelIndex tunnelIndex,
Vni vni)
Clears all remote MAC addresses from the specified tunnel/VNI; facilitates static learning.
|
TunnelIndex |
createTunnel(TunnelIndex tunnelIndex,
IpAddress srcIp,
IpAddress dstIp)
Creates a new VxLan tunnel and returns the resulting interface.
|
void |
destroyTunnel(TunnelIndex tunnelIndex)
Destroys the tunnel identified by the specified tunnel interface index.
|
Set<MacAddress> |
getMacAddresses(TunnelIndex tunnelIndex,
Vni vni)
Gets the set of remote MAC addresses configured on the specified tunnel/VNI; facilitates static learning.
|
Vxlan |
getTunnel(TunnelIndex tunnelIndex)
Retrieves the VXLAN tunnel descriptor for the tunnel with the specified interface index.
|
Set<TunnelIndex> |
getTunnelBindings(Vni vni)
Retrieves the set of tunnel indexes bound to the specified VNI.
|
Set<TunnelIndex> |
getTunnels(StatusFilter statusFilter)
Get a set of tunnel interface indexes that represent tunnels created on the device.
|
Set<VlanPortPair> |
getVlanBindings(Vni vni)
Retrieves the set of VLAN/port pairs bound to the specified VNI.
|
void |
removeMacAddresses(TunnelIndex tunnelIndex,
Vni vni,
Set<MacAddress> macAddresses)
Removes the given set of remote MAC addresses from the specified tunnel/VNI; facilitates static learning.
|
void |
setFlooding(Vni vni,
boolean on)
Enables or disables flooding of packets with unknown destination MAC addresses on a given VNI.
|
void |
setMacLearning(boolean on)
Enables or disables learning of remote MAC addresses on the VXLAN tunnels.
|
void |
unbindTunnelsFromVNI(Vni vni,
Set<TunnelIndex> tunnelIndexes)
Unbinds the given set of tunnels from the specified VNI.
|
void |
unbindVlansFromVNI(Vni vni,
Set<VlanPortPair> vlanPorts)
Unbinds the given set of VLAN/port pairs from the specified VNI.
|
apply, fetch, getIpAddress, setIpAddress
getContext, getTypeName
TunnelIndex createTunnel(TunnelIndex tunnelIndex, IpAddress srcIp, IpAddress dstIp)
tunnelIndex
- specifies the suggested tunnel interface index (as a positive integer) to be used for the tunnel;
device may disregard the suggestion and issue one itself; interface index should not be already in use by other tunnelssrcIp
- IPv4 address of the local VTEPdstIp
- IPv4 address of the remote VTEPIllegalArgumentException
- if tunnel interface index is already in usevoid destroyTunnel(TunnelIndex tunnelIndex)
tunnelIndex
- tunnel interface indexIllegalArgumentException
- if tunnel interface index not correspond to a tunnelOperationFailureException
- if the operation failed for some reasonSet<TunnelIndex> getTunnels(StatusFilter statusFilter)
statusFilter
- status filter (ANY, UP, DOWN)Vxlan getTunnel(TunnelIndex tunnelIndex)
tunnelIndex
- interface index of the tunnelvoid bindVlansToVNI(Vni vni, Set<VlanPortPair> vlanPorts)
vni
- VNI to bind tovlanPorts
- set of VLAN portsOperationFailureException
- if the operation failed for some reason
// TODO: consider specialized exception to allow retrieval of the fail-pointvoid unbindVlansFromVNI(Vni vni, Set<VlanPortPair> vlanPorts)
vni
- VNI to unbind fromvlanPorts
- set of VLAN portsOperationFailureException
- if the operation failed for some reason
// TODO: consider specialized exception to allow retrieval of the fail-pointSet<VlanPortPair> getVlanBindings(Vni vni)
vni
- VNI a tunnel is bound tovoid bindTunnelsToVNI(Vni vni, Set<TunnelIndex> tunnelIndexes)
vni
- VNI to bind totunnelIndexes
- set of tunnel indexesOperationFailureException
- if the operation failed for some reason
// TODO: consider specialized exception to allow retrieval of the fail-pointvoid unbindTunnelsFromVNI(Vni vni, Set<TunnelIndex> tunnelIndexes)
vni
- VNI to unbind fromtunnelIndexes
- set of tunnel indexesOperationFailureException
- if the operation failed for some reason
// TODO: consider specialized exception to allow retrieval of the fail-pointSet<TunnelIndex> getTunnelBindings(Vni vni)
vni
- VNI a tunnel is bound tovoid setMacLearning(boolean on)
on
- true to enable; false to disablevoid setFlooding(Vni vni, boolean on)
vni
- virtual network instanceon
- true to enable; false to disable
// TODO: Is this strictly required? Or should it go into a different facet?void addMacAddresses(TunnelIndex tunnelIndex, Vni vni, Set<MacAddress> macAddresses)
tunnelIndex
- tunnel indexvni
- VNImacAddresses
- set of MAC addresses to be addedvoid removeMacAddresses(TunnelIndex tunnelIndex, Vni vni, Set<MacAddress> macAddresses)
tunnelIndex
- tunnel indexvni
- VNImacAddresses
- set of MAC addresses to be removedvoid clearMacAddresses(TunnelIndex tunnelIndex, Vni vni)
tunnelIndex
- tunnel indexvni
- VNISet<MacAddress> getMacAddresses(TunnelIndex tunnelIndex, Vni vni)
tunnelIndex
- tunnel indexvni
- VNICopyright © 2015. All Rights Reserved.