public class LinkableNode extends Object
LinkableNode class.
Constructor and Description |
---|
LinkableNode(int nodeId,
InetAddress snmpPrimaryAddr,
String sysoid)
Constructor for LinkableNode.
|
Modifier and Type | Method and Description |
---|---|
void |
addBackBoneBridgePorts(int bridgeport)
add bridgeport to backbone ports
|
void |
addBridgeIdentifier(String bridge) |
void |
addBridgeIdentifier(String bridge,
String vlan) |
void |
addMacAddress(int bridgeport,
String macAddress,
String vlan) |
void |
addStpInterface(OnmsStpInterface stpIface)
addStpInterface
|
List<OnmsAtInterface> |
getAtInterfaces()
getAtInterfaces
|
List<Integer> |
getBackBoneBridgePorts() |
String |
getBridgeIdentifier(String vlan) |
List<String> |
getBridgeIdentifiers() |
int |
getBridgePort(int ifindex) |
List<Integer> |
getBridgePortsFromMac(String macAddress) |
List<CdpInterface> |
getCdpInterfaces()
getCdpInterfaces
|
int |
getIfindex(int bridgeport) |
Set<String> |
getMacAddressesOnBridgePort(int bridgeport) |
int |
getNodeId()
getNodeId
|
Map<Integer,Set<String>> |
getPortMacs() |
List<RouterInterface> |
getRouteInterfaces()
getRouteInterfaces
|
InetAddress |
getSnmpPrimaryIpAddr()
getSnmpPrimaryIpAddr
|
Map<String,List<OnmsStpInterface>> |
getStpInterfaces()
getStpInterfaces
|
String |
getStpRoot(String vlan) |
String |
getSysoid()
getSysoid
|
String |
getVlan(String macAddress) |
List<OnmsVlan> |
getVlans()
Getter for the field
vlans . |
boolean |
hasAtInterfaces()
hasAtInterfaces
|
boolean |
hasCdpInterfaces()
hasCdpInterfaces
|
boolean |
hasMacAddress(String macAddress) |
boolean |
hasMacAddresses() |
boolean |
hasMacAddressesOnBridgePort(int bridgeport) |
boolean |
hasRouteInterfaces()
hasRouteInterfaces
|
boolean |
hasStpRoot(String vlan) |
boolean |
isBackBoneBridgePort(int bridgeport)
return true if bridgeport is a backbone port
|
boolean |
isBridgeIdentifier(String bridge) |
boolean |
isBridgeNode()
isBridgeNode
|
void |
setAtInterfaces(List<OnmsAtInterface> atinterfaces)
setAtInterfaces
|
void |
setBackBoneBridgePorts(List<Integer> backBoneBridgePorts) |
void |
setBridgeIdentifiers(List<String> bridgeIdentifiers) |
void |
setCdpInterfaces(List<CdpInterface> cdpinterfaces)
setCdpInterfaces
|
void |
setPortMacs(Map<Integer,Set<String>> portMacs) |
void |
setRouteInterfaces(List<RouterInterface> routeinterfaces)
setRouteInterfaces
|
void |
setStpInterfaces(Map<String,List<OnmsStpInterface>> stpInterfaces)
setStpInterfaces
|
void |
setVlans(List<OnmsVlan> vlans)
Setter for the field
vlans . |
void |
setVlanStpRoot(String vlan,
String stproot) |
String |
toString()
toString
|
public LinkableNode(int nodeId, InetAddress snmpPrimaryAddr, String sysoid)
Constructor for LinkableNode.
nodeId
- a int.snmprimaryaddr
- a InetAddress
object.sysoid
- a String
object.public String toString()
toString
public int getNodeId()
getNodeId
public InetAddress getSnmpPrimaryIpAddr()
getSnmpPrimaryIpAddr
String
object.public List<CdpInterface> getCdpInterfaces()
getCdpInterfaces
public void setCdpInterfaces(List<CdpInterface> cdpinterfaces)
setCdpInterfaces
cdpinterfaces
- The m_cdpinterfaces to set.public boolean hasCdpInterfaces()
hasCdpInterfaces
public List<RouterInterface> getRouteInterfaces()
getRouteInterfaces
public void setRouteInterfaces(List<RouterInterface> routeinterfaces)
setRouteInterfaces
routeinterfaces
- a List
object.public boolean hasAtInterfaces()
hasAtInterfaces
public List<OnmsAtInterface> getAtInterfaces()
getAtInterfaces
public void setAtInterfaces(List<OnmsAtInterface> atinterfaces)
setAtInterfaces
m_atinterfaces
- a List
object.public boolean hasRouteInterfaces()
hasRouteInterfaces
public boolean isBridgeNode()
isBridgeNode
public List<Integer> getBackBoneBridgePorts()
public void setBackBoneBridgePorts(List<Integer> backBoneBridgePorts)
backBoneBridgePorts
- The backBoneBridgePorts to set.public boolean isBackBoneBridgePort(int bridgeport)
bridgeport
- public void addBackBoneBridgePorts(int bridgeport)
bridgeport
- public List<String> getBridgeIdentifiers()
public void setBridgeIdentifiers(List<String> bridgeIdentifiers)
bridgeIdentifiers
- The bridgeIdentifiers to set.public boolean isBridgeIdentifier(String bridge)
public void addBridgeIdentifier(String bridge)
public boolean hasMacAddress(String macAddress)
public boolean hasMacAddresses()
public boolean hasMacAddressesOnBridgePort(int bridgeport)
public int getIfindex(int bridgeport)
public int getBridgePort(int ifindex)
public void setPortMacs(Map<Integer,Set<String>> portMacs)
portMacs
- The portMacs to set.public boolean hasStpRoot(String vlan)
public Map<String,List<OnmsStpInterface>> getStpInterfaces()
getStpInterfaces
public void setStpInterfaces(Map<String,List<OnmsStpInterface>> stpInterfaces)
setStpInterfaces
stpInterfaces
- The stpInterfaces to set.public void addStpInterface(OnmsStpInterface stpIface)
addStpInterface
stpIface
- a OnmsStpInterface
object.Copyright © 2015. All Rights Reserved.