public class InterfaceConfigCiscoIosImpl
extends org.onosproject.net.driver.AbstractHandlerBehaviour
implements org.onosproject.net.behaviour.InterfaceConfig
| Constructor and Description |
|---|
InterfaceConfigCiscoIosImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAccessInterface(org.onosproject.net.DeviceId deviceId,
String intf,
org.onlab.packet.VlanId vlanId)
Adds an access interface to a VLAN.
|
boolean |
addAccessMode(String intf,
org.onlab.packet.VlanId vlanId)
Adds an access interface to a VLAN.
|
boolean |
addPatchMode(String ifaceName,
org.onosproject.net.behaviour.PatchDescription patchDesc) |
boolean |
addRateLimit(String intf,
short limit)
Adds a rate limit on an interface.
|
boolean |
addTrunkInterface(org.onosproject.net.DeviceId deviceId,
String intf,
List<org.onlab.packet.VlanId> vlanIds)
Adds a trunk interface for VLANs.
|
boolean |
addTrunkMode(String intf,
List<org.onlab.packet.VlanId> vlanIds)
Adds a trunk interface for VLANs.
|
boolean |
addTunnelMode(String ifaceName,
org.onosproject.net.behaviour.TunnelDescription tunnelDesc) |
List<org.onosproject.net.device.DeviceInterfaceDescription> |
getInterfaces()
Provides the interfaces configured on a device.
|
List<org.onosproject.net.device.DeviceInterfaceDescription> |
getInterfaces(org.onosproject.net.DeviceId deviceId)
Provides the interfaces configured on a device.
|
boolean |
removeAccessInterface(org.onosproject.net.DeviceId deviceId,
String intf)
Removes an access interface to a VLAN.
|
boolean |
removeAccessMode(String intf)
Removes an access interface to a VLAN.
|
boolean |
removePatchMode(String ifaceName) |
boolean |
removeRateLimit(String intf)
Removes rate limit from an interface.
|
boolean |
removeTrunkInterface(org.onosproject.net.DeviceId deviceId,
String intf)
Removes trunk mode configuration from an interface.
|
boolean |
removeTrunkMode(String intf)
Removes trunk mode configuration from an interface.
|
boolean |
removeTunnelMode(String ifaceName) |
handler, setHandlerpublic boolean addAccessInterface(org.onosproject.net.DeviceId deviceId,
String intf,
org.onlab.packet.VlanId vlanId)
addAccessInterface in interface org.onosproject.net.behaviour.InterfaceConfigdeviceId - the device IDintf - the name of the interfacevlanId - the VLAN IDpublic boolean addAccessMode(String intf, org.onlab.packet.VlanId vlanId)
addAccessMode in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacevlanId - the VLAN IDpublic boolean removeAccessInterface(org.onosproject.net.DeviceId deviceId,
String intf)
removeAccessInterface in interface org.onosproject.net.behaviour.InterfaceConfigdeviceId - the device IDintf - the name of the interfacepublic boolean removeAccessMode(String intf)
removeAccessMode in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacepublic boolean addTrunkInterface(org.onosproject.net.DeviceId deviceId,
String intf,
List<org.onlab.packet.VlanId> vlanIds)
addTrunkInterface in interface org.onosproject.net.behaviour.InterfaceConfigdeviceId - the device IDintf - the name of the interfacevlanIds - the VLAN IDspublic boolean addTrunkMode(String intf, List<org.onlab.packet.VlanId> vlanIds)
addTrunkMode in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacevlanIds - the VLAN IDspublic boolean removeTrunkInterface(org.onosproject.net.DeviceId deviceId,
String intf)
removeTrunkInterface in interface org.onosproject.net.behaviour.InterfaceConfigdeviceId - the device IDintf - the name of the interfacepublic boolean removeTrunkMode(String intf)
removeTrunkMode in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacepublic boolean addRateLimit(String intf, short limit)
addRateLimit in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacelimit - the limit as a percentagepublic boolean removeRateLimit(String intf)
removeRateLimit in interface org.onosproject.net.behaviour.InterfaceConfigintf - the name of the interfacepublic List<org.onosproject.net.device.DeviceInterfaceDescription> getInterfaces(org.onosproject.net.DeviceId deviceId)
getInterfaces in interface org.onosproject.net.behaviour.InterfaceConfigdeviceId - the device IDpublic List<org.onosproject.net.device.DeviceInterfaceDescription> getInterfaces()
getInterfaces in interface org.onosproject.net.behaviour.InterfaceConfigpublic boolean addTunnelMode(String ifaceName, org.onosproject.net.behaviour.TunnelDescription tunnelDesc)
addTunnelMode in interface org.onosproject.net.behaviour.InterfaceConfigpublic boolean removeTunnelMode(String ifaceName)
removeTunnelMode in interface org.onosproject.net.behaviour.InterfaceConfigpublic boolean addPatchMode(String ifaceName, org.onosproject.net.behaviour.PatchDescription patchDesc)
addPatchMode in interface org.onosproject.net.behaviour.InterfaceConfigpublic boolean removePatchMode(String ifaceName)
removePatchMode in interface org.onosproject.net.behaviour.InterfaceConfig