Class BgpConfig.BgpSpeakerConfig

  • Enclosing class:
    BgpConfig

    public static class BgpConfig.BgpSpeakerConfig
    extends java.lang.Object
    Configuration for a BGP speaker.
    • 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()
      • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object