public static class BgpConfig.BgpSpeakerConfig
extends java.lang.Object
Constructor and Description |
---|
BgpSpeakerConfig(java.util.Optional<java.lang.String> name,
VlanId vlanId,
ConnectPoint connectPoint,
java.util.Set<IpAddress> peers) |
Modifier and Type | Method and Description |
---|---|
ConnectPoint |
connectPoint() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isConnectedToPeer(IpAddress peer)
Examines if BGP peer is connected.
|
java.util.Optional<java.lang.String> |
name() |
java.util.Set<IpAddress> |
peers() |
VlanId |
vlan() |
public BgpSpeakerConfig(java.util.Optional<java.lang.String> name, VlanId vlanId, ConnectPoint connectPoint, java.util.Set<IpAddress> peers)
public java.util.Optional<java.lang.String> name()
public VlanId vlan()
public ConnectPoint connectPoint()
public java.util.Set<IpAddress> peers()
public boolean isConnectedToPeer(IpAddress peer)
peer
- IP address of peerpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object