Package org.onosproject.routing.config
Class BgpConfig.BgpSpeakerConfig
- java.lang.Object
-
- org.onosproject.routing.config.BgpConfig.BgpSpeakerConfig
-
- Enclosing class:
- BgpConfig
public static class BgpConfig.BgpSpeakerConfig extends java.lang.Object
Configuration for a BGP speaker.
-
-
Constructor Summary
Constructors Constructor Description BgpSpeakerConfig(java.util.Optional<java.lang.String> name, VlanId vlanId, ConnectPoint connectPoint, java.util.Set<IpAddress> peers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
BgpSpeakerConfig
public BgpSpeakerConfig(java.util.Optional<java.lang.String> name, VlanId vlanId, ConnectPoint connectPoint, java.util.Set<IpAddress> peers)
-
-
Method Detail
-
name
public java.util.Optional<java.lang.String> name()
-
vlan
public VlanId vlan()
-
connectPoint
public ConnectPoint connectPoint()
-
peers
public java.util.Set<IpAddress> peers()
-
isConnectedToPeer
public boolean isConnectedToPeer(IpAddress peer)
Examines if BGP peer is connected.- Parameters:
peer
- IP address of peer- Returns:
- result of search
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-