Package org.onosproject.net.behaviour
Interface InterfaceConfig
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface InterfaceConfig extends HandlerBehaviour
Means to configure interfaces on devices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAccessMode(java.lang.String intf, VlanId vlanId)
Adds an access interface to a VLAN.boolean
addPatchMode(java.lang.String ifaceName, PatchDescription patchInterface)
Adds a patch mode to the supplied interface.boolean
addRateLimit(java.lang.String intf, short limit)
Adds a rate limit on an interface.boolean
addTrunkMode(java.lang.String intf, java.util.List<VlanId> vlanIds)
Adds a trunk interface for VLANs.boolean
addTunnelMode(java.lang.String intf, TunnelDescription tunnelDesc)
Adds a tunnel mode to supplied interface.java.util.List<DeviceInterfaceDescription>
getInterfaces()
Provides the interfaces configured on a device.boolean
removeAccessMode(java.lang.String intf)
Removes an access interface to a VLAN.boolean
removePatchMode(java.lang.String ifaceName)
Removes a patch mode from the supplied interface.boolean
removeRateLimit(java.lang.String intf)
Removes rate limit from an interface.boolean
removeTrunkMode(java.lang.String intf)
Removes trunk mode configuration from an interface.boolean
removeTunnelMode(java.lang.String intf)
Removes a tunnel interface.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
addAccessMode
boolean addAccessMode(java.lang.String intf, VlanId vlanId)
Adds an access interface to a VLAN.- Parameters:
intf
- the name of the interfacevlanId
- the VLAN ID- Returns:
- the result of operation
-
removeAccessMode
boolean removeAccessMode(java.lang.String intf)
Removes an access interface to a VLAN.- Parameters:
intf
- the name of the interface- Returns:
- the result of operation
-
addTrunkMode
boolean addTrunkMode(java.lang.String intf, java.util.List<VlanId> vlanIds)
Adds a trunk interface for VLANs.- Parameters:
intf
- the name of the interfacevlanIds
- the VLAN IDs- Returns:
- the result of operation
-
removeTrunkMode
boolean removeTrunkMode(java.lang.String intf)
Removes trunk mode configuration from an interface.- Parameters:
intf
- the name of the interface- Returns:
- the result of operation
-
addRateLimit
boolean addRateLimit(java.lang.String intf, short limit)
Adds a rate limit on an interface.- Parameters:
intf
- the name of the interfacelimit
- the limit as a percentage- Returns:
- the result of operation
-
removeRateLimit
boolean removeRateLimit(java.lang.String intf)
Removes rate limit from an interface.- Parameters:
intf
- the name of the interface- Returns:
- the result of operation
-
addTunnelMode
boolean addTunnelMode(java.lang.String intf, TunnelDescription tunnelDesc)
Adds a tunnel mode to supplied interface.- Parameters:
intf
- the name of the interfacetunnelDesc
- tunnel interface description- Returns:
- true if the operation succeeds
-
removeTunnelMode
boolean removeTunnelMode(java.lang.String intf)
Removes a tunnel interface.- Parameters:
intf
- tunnel interface name- Returns:
- true if the operation succeeds
-
addPatchMode
boolean addPatchMode(java.lang.String ifaceName, PatchDescription patchInterface)
Adds a patch mode to the supplied interface.- Parameters:
ifaceName
- interface name to set patch modepatchInterface
- interface description- Returns:
- true if the operation succeeds
-
removePatchMode
boolean removePatchMode(java.lang.String ifaceName)
Removes a patch mode from the supplied interface.- Parameters:
ifaceName
- interface name- Returns:
- true if the operation succeeds
-
getInterfaces
java.util.List<DeviceInterfaceDescription> getInterfaces()
Provides the interfaces configured on a device.- Returns:
- the list of the configured interfaces
-
-