Class BgpConfig

    • Constructor Detail

      • BgpConfig

        public BgpConfig()
    • Method Detail

      • bgpSpeakers

        public java.util.Set<BgpConfig.BgpSpeakerConfig> bgpSpeakers()
        Gets the set of configured BGP speakers.
        Returns:
        BGP speakers
      • getSpeakerWithName

        public BgpConfig.BgpSpeakerConfig getSpeakerWithName​(java.lang.String name)
        Examines whether a name of BGP speaker exists in configuration.
        Parameters:
        name - the name of BGP speaker being search
        Returns:
        the BGP speaker
      • addSpeaker

        public void addSpeaker​(BgpConfig.BgpSpeakerConfig speaker)
        Adds a BGP speaker to the configuration.
        Parameters:
        speaker - the BGP speaker configuration entry
      • removeSpeaker

        public void removeSpeaker​(java.lang.String speakerName)
        Removes BGP speaker from configuration.
        Parameters:
        speakerName - BGP speaker name
      • addPeerToSpeaker

        public void addPeerToSpeaker​(java.lang.String speakerName,
                                     IpAddress peerAddress)
        Adds peering address to BGP speaker.
        Parameters:
        speakerName - name of BGP speaker
        peerAddress - peering address to be added
      • getSpeakerFromPeer

        public BgpConfig.BgpSpeakerConfig getSpeakerFromPeer​(IpAddress peerAddress)
        Finds BGP speaker peering with a given external peer.
        Parameters:
        peerAddress - BGP peer address
        Returns:
        BGP speaker
      • removePeerFromSpeaker

        public void removePeerFromSpeaker​(BgpConfig.BgpSpeakerConfig speaker,
                                          IpAddress peerAddress)
        Removes peering address from BGP speaker.
        Parameters:
        speaker - BGP speaker configuration entries
        peerAddress - peering address to be removed