public class DefaultIsisInterface extends Object implements org.onosproject.isis.controller.IsisInterface
| Constructor and Description |
|---|
DefaultIsisInterface() |
| Modifier and Type | Method and Description |
|---|---|
String |
areaAddress()
Returns area address.
|
org.jboss.netty.channel.Channel |
channel()
Returns channel instance.
|
String |
circuitId()
Returns the circuit ID.
|
int |
getAreaLength()
Returns area length.
|
int |
getIdLength()
Returns ID length.
|
org.onlab.packet.MacAddress |
getInterfaceMacAddress()
Returns the interface mac address.
|
int |
getMaxAreaAddresses()
Returns max area addresses.
|
int |
helloInterval()
Returns hello interval.
|
int |
holdingTime()
Returns holding time.
|
int |
interfaceIndex()
Returns interface index.
|
org.onlab.packet.Ip4Address |
interfaceIpAddress()
Returns the interface IP address.
|
org.onosproject.isis.controller.IsisInterfaceState |
interfaceState()
Returns the interface state.
|
String |
intermediateSystemName()
Returns intermediate system name.
|
org.onosproject.isis.controller.IsisLsdb |
isisLsdb()
Returns ISIS LSDB instance.
|
String |
l1LanId()
Returns LAN ID.
|
String |
l2LanId()
Returns LAN ID.
|
org.onosproject.isis.controller.IsisNeighbor |
lookup(org.onlab.packet.MacAddress isisNeighborMac)
Returns the ISIS neighbor instance if exists.
|
String |
lspKeyP2P(String systemId)
Gets the LSP key.
|
Set<org.onlab.packet.MacAddress> |
neighbors()
Returns the neighbors list.
|
byte[] |
networkMask()
Returns the network mask.
|
org.onosproject.isis.controller.IsisNetworkType |
networkType()
Returns point to point.
|
int |
priority()
Returns priority.
|
void |
processCsnPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
Processes CSN PDU message.
|
void |
processIsisMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.onosproject.isis.controller.IsisLsdb isisLsdb,
org.jboss.netty.channel.Channel channel)
Processes received ISIS message.
|
void |
processL1L2HelloPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
Processes the L1 or L2 hello message.
|
void |
processLsPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
Processes LS PDU message.
|
void |
processP2pHelloPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
Processes P2P hello message.
|
void |
processPsnPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
Processes PSN PDU message.
|
void |
removeNeighbor(org.onosproject.isis.controller.IsisNeighbor isisNeighbor)
Removes neighbor from the interface neighbor map.
|
void |
removeNeighbors()
Removes all the neighbors.
|
int |
reservedPacketCircuitType()
Returns reserved packet circuit type.
|
void |
setAllConfiguredInterfaceIps(List<org.onlab.packet.Ip4Address> allConfiguredInterfaces)
Sets all configured interface IPs.
|
void |
setAreaAddress(String areaAddress)
Sets area address.
|
void |
setAreaLength(int areaLength)
Sets area length.
|
void |
setCircuitId(String circuitId)
Sets the circuit ID.
|
void |
setHelloInterval(int helloInterval)
Sets hello interval.
|
void |
setHoldingTime(int holdingTime)
Sets holding time.
|
void |
setIdLength(int idLength)
Sets ID length.
|
void |
setInterfaceIndex(int interfaceIndex)
Set interface index.
|
void |
setInterfaceIpAddress(org.onlab.packet.Ip4Address interfaceIpAddress)
Sets the interface IP address.
|
void |
setInterfaceMacAddress(org.onlab.packet.MacAddress interfaceMacAddress)
Sets the interface mac address.
|
void |
setInterfaceState(org.onosproject.isis.controller.IsisInterfaceState interfaceState)
Sets the interface state.
|
void |
setIntermediateSystemName(String intermediateSystemName)
Sets intermediate system name.
|
void |
setL1LanId(String l1LanId)
Sets LAN ID.
|
void |
setL2LanId(String l2LanId)
Sets LAN ID.
|
void |
setMaxAreaAddresses(int maxAreaAddresses)
Sets area max addresses.
|
void |
setNetworkMask(byte[] networkMask)
Sets the network mask.
|
void |
setNetworkType(org.onosproject.isis.controller.IsisNetworkType networkType)
Sets point to point or broadcast.
|
void |
setPriority(int priority)
Sets priority.
|
void |
setReservedPacketCircuitType(int reservedPacketCircuitType)
Sets reserved packet circuit type.
|
void |
setSystemId(String systemId)
Sets system ID.
|
void |
startHelloSender(org.jboss.netty.channel.Channel channel)
Starts the hello timer which sends hello packet every configured seconds.
|
void |
stopHelloSender()
Stops the hello timer which sends hello packet every configured seconds.
|
String |
systemId()
Returns system ID.
|
boolean |
validateHelloMessage(org.onosproject.isis.io.isispacket.pdu.HelloPdu helloPdu)
Validates the received message.
|
public org.onosproject.isis.controller.IsisLsdb isisLsdb()
isisLsdb in interface org.onosproject.isis.controller.IsisInterfacepublic void setAllConfiguredInterfaceIps(List<org.onlab.packet.Ip4Address> allConfiguredInterfaces)
allConfiguredInterfaces - all configured interface IPspublic void removeNeighbor(org.onosproject.isis.controller.IsisNeighbor isisNeighbor)
removeNeighbor in interface org.onosproject.isis.controller.IsisInterfaceisisNeighbor - ISIS neighbor instancepublic void removeNeighbors()
removeNeighbors in interface org.onosproject.isis.controller.IsisInterfacepublic org.onosproject.isis.controller.IsisNeighbor lookup(org.onlab.packet.MacAddress isisNeighborMac)
lookup in interface org.onosproject.isis.controller.IsisInterfaceisisNeighborMac - mac address of the neighbor routerpublic Set<org.onlab.packet.MacAddress> neighbors()
neighbors in interface org.onosproject.isis.controller.IsisInterfacepublic org.jboss.netty.channel.Channel channel()
public int interfaceIndex()
interfaceIndex in interface org.onosproject.isis.controller.IsisInterfacepublic void setInterfaceIndex(int interfaceIndex)
setInterfaceIndex in interface org.onosproject.isis.controller.IsisInterfaceinterfaceIndex - interface indexpublic org.onlab.packet.Ip4Address interfaceIpAddress()
interfaceIpAddress in interface org.onosproject.isis.controller.IsisInterfacepublic void setInterfaceIpAddress(org.onlab.packet.Ip4Address interfaceIpAddress)
setInterfaceIpAddress in interface org.onosproject.isis.controller.IsisInterfaceinterfaceIpAddress - interfaceIpAddress interface IP addresspublic byte[] networkMask()
networkMask in interface org.onosproject.isis.controller.IsisInterfacepublic void setNetworkMask(byte[] networkMask)
setNetworkMask in interface org.onosproject.isis.controller.IsisInterfacenetworkMask - network maskpublic org.onlab.packet.MacAddress getInterfaceMacAddress()
public void setInterfaceMacAddress(org.onlab.packet.MacAddress interfaceMacAddress)
setInterfaceMacAddress in interface org.onosproject.isis.controller.IsisInterfaceinterfaceMacAddress - interface mac addresspublic String intermediateSystemName()
intermediateSystemName in interface org.onosproject.isis.controller.IsisInterfacepublic void setIntermediateSystemName(String intermediateSystemName)
setIntermediateSystemName in interface org.onosproject.isis.controller.IsisInterfaceintermediateSystemName - intermediate system namepublic String systemId()
systemId in interface org.onosproject.isis.controller.IsisInterfacepublic void setSystemId(String systemId)
setSystemId in interface org.onosproject.isis.controller.IsisInterfacesystemId - system IDpublic String l1LanId()
l1LanId in interface org.onosproject.isis.controller.IsisInterfacepublic void setL1LanId(String l1LanId)
setL1LanId in interface org.onosproject.isis.controller.IsisInterfacel1LanId - LAN IDpublic String l2LanId()
l2LanId in interface org.onosproject.isis.controller.IsisInterfacepublic void setL2LanId(String l2LanId)
setL2LanId in interface org.onosproject.isis.controller.IsisInterfacel2LanId - LAN IDpublic int getIdLength()
public void setIdLength(int idLength)
setIdLength in interface org.onosproject.isis.controller.IsisInterfaceidLength - ID lengthpublic int getMaxAreaAddresses()
public void setMaxAreaAddresses(int maxAreaAddresses)
setMaxAreaAddresses in interface org.onosproject.isis.controller.IsisInterfacemaxAreaAddresses - max area addressespublic int reservedPacketCircuitType()
reservedPacketCircuitType in interface org.onosproject.isis.controller.IsisInterfacepublic void setReservedPacketCircuitType(int reservedPacketCircuitType)
setReservedPacketCircuitType in interface org.onosproject.isis.controller.IsisInterfacereservedPacketCircuitType - reserved packet circuit typepublic org.onosproject.isis.controller.IsisNetworkType networkType()
networkType in interface org.onosproject.isis.controller.IsisInterfacepublic void setNetworkType(org.onosproject.isis.controller.IsisNetworkType networkType)
setNetworkType in interface org.onosproject.isis.controller.IsisInterfacenetworkType - point to point or broadcastpublic String areaAddress()
areaAddress in interface org.onosproject.isis.controller.IsisInterfacepublic void setAreaAddress(String areaAddress)
setAreaAddress in interface org.onosproject.isis.controller.IsisInterfaceareaAddress - area addresspublic int getAreaLength()
public void setAreaLength(int areaLength)
setAreaLength in interface org.onosproject.isis.controller.IsisInterfaceareaLength - area lengthpublic int holdingTime()
holdingTime in interface org.onosproject.isis.controller.IsisInterfacepublic void setHoldingTime(int holdingTime)
setHoldingTime in interface org.onosproject.isis.controller.IsisInterfaceholdingTime - holding timepublic int priority()
priority in interface org.onosproject.isis.controller.IsisInterfacepublic void setPriority(int priority)
setPriority in interface org.onosproject.isis.controller.IsisInterfacepriority - prioritypublic int helloInterval()
helloInterval in interface org.onosproject.isis.controller.IsisInterfacepublic void setHelloInterval(int helloInterval)
setHelloInterval in interface org.onosproject.isis.controller.IsisInterfacehelloInterval - hello intervalpublic org.onosproject.isis.controller.IsisInterfaceState interfaceState()
interfaceState in interface org.onosproject.isis.controller.IsisInterfacepublic void setInterfaceState(org.onosproject.isis.controller.IsisInterfaceState interfaceState)
setInterfaceState in interface org.onosproject.isis.controller.IsisInterfaceinterfaceState - the interface statepublic String circuitId()
circuitId in interface org.onosproject.isis.controller.IsisInterfacepublic void setCircuitId(String circuitId)
setCircuitId in interface org.onosproject.isis.controller.IsisInterfacecircuitId - circuit IDpublic void processIsisMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.onosproject.isis.controller.IsisLsdb isisLsdb,
org.jboss.netty.channel.Channel channel)
processIsisMessage in interface org.onosproject.isis.controller.IsisInterfaceisisMessage - received ISIS messageisisLsdb - ISIS LSDB instancepublic boolean validateHelloMessage(org.onosproject.isis.io.isispacket.pdu.HelloPdu helloPdu)
helloPdu - ISIS message instancepublic void processL1L2HelloPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
isisMessage - hello message instancechannel - channel instancepublic void processP2pHelloPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
isisMessage - hello message instancechannel - channel instancepublic void processLsPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
isisMessage - LS pdu message instancechannel - channel instancepublic void processPsnPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
isisMessage - PSN PDU message instancechannel - channel instancepublic void processCsnPduMessage(org.onosproject.isis.controller.IsisMessage isisMessage,
org.jboss.netty.channel.Channel channel)
isisMessage - CSN PDU message instancechannel - channel instancepublic String lspKeyP2P(String systemId)
systemId - system IDpublic void startHelloSender(org.jboss.netty.channel.Channel channel)
startHelloSender in interface org.onosproject.isis.controller.IsisInterfacechannel - netty channel instancepublic void stopHelloSender()
stopHelloSender in interface org.onosproject.isis.controller.IsisInterfaceCopyright © 2016. All rights reserved.