Class PolicyBgpNeighborStatus.Builder

    • Constructor Detail

    • Method Detail

      • setAddressFamilies

        public PolicyBgpNeighborStatus.Builder setAddressFamilies​(java.util.List<BgpAddressFamily> addressFamilies)
        Address families of BGP neighbor This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        addressFamilies - New value for the property.
      • setAnnouncedCapabilities

        public PolicyBgpNeighborStatus.Builder setAnnouncedCapabilities​(java.util.List<java.lang.String> announcedCapabilities)
        BGP capabilities sent to BGP neighbor. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        announcedCapabilities - New value for the property.
      • setConnectionDropCount

        public PolicyBgpNeighborStatus.Builder setConnectionDropCount​(java.lang.Long connectionDropCount)
        Count of connection drop format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        connectionDropCount - New value for the property.
      • setEdgePath

        public PolicyBgpNeighborStatus.Builder setEdgePath​(java.lang.String edgePath)
        Transport node policy path
        Parameters:
        edgePath - New value for the property.
      • setEstablishedConnectionCount

        public PolicyBgpNeighborStatus.Builder setEstablishedConnectionCount​(java.lang.Long establishedConnectionCount)
        Count of connections established format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        establishedConnectionCount - New value for the property.
      • setGracefulRestartMode

        public PolicyBgpNeighborStatus.Builder setGracefulRestartMode​(java.lang.String gracefulRestartMode)
        Current state of graceful restart of BGP neighbor. Possible values are - 1. GR_AND_HELPER - Graceful restart with Helper 2. HELPER_ONLY - Helper only 3. DISABLE - Disabled This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        gracefulRestartMode - New value for the property.
      • setHoldTime

        public PolicyBgpNeighborStatus.Builder setHoldTime​(java.lang.Long holdTime)
        If a HELLO packet is not seen from BGP Peer withing hold_time then BGP neighbor will be marked as down. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        holdTime - New value for the property.
      • setKeepAliveInterval

        public PolicyBgpNeighborStatus.Builder setKeepAliveInterval​(java.lang.Long keepAliveInterval)
        Time in ms to wait for HELLO packet from BGP peer format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        keepAliveInterval - New value for the property.
      • setLastUpdateTimestamp

        public PolicyBgpNeighborStatus.Builder setLastUpdateTimestamp​(java.lang.Long lastUpdateTimestamp)
        Timestamp when the data was last updated, unset if data source has never updated the data. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        lastUpdateTimestamp - New value for the property.
      • setLocalPort

        public PolicyBgpNeighborStatus.Builder setLocalPort​(java.lang.Long localPort)
        TCP port number of Local BGP connection format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        localPort - New value for the property.
      • setMessagesReceived

        public PolicyBgpNeighborStatus.Builder setMessagesReceived​(java.lang.Long messagesReceived)
        Count of messages received from the neighbor format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        messagesReceived - New value for the property.
      • setMessagesSent

        public PolicyBgpNeighborStatus.Builder setMessagesSent​(java.lang.Long messagesSent)
        Count of messages sent to the neighbor format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        messagesSent - New value for the property.
      • setNegotiatedCapability

        public PolicyBgpNeighborStatus.Builder setNegotiatedCapability​(java.util.List<java.lang.String> negotiatedCapability)
        BGP capabilities negotiated with BGP neighbor. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        negotiatedCapability - New value for the property.
      • setNeighborAddress

        public PolicyBgpNeighborStatus.Builder setNeighborAddress​(java.lang.String neighborAddress)
        The IP of the BGP neighbor format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        neighborAddress - New value for the property.
      • setNeighborEdgeNode

        public PolicyBgpNeighborStatus.Builder setNeighborEdgeNode​(java.lang.String neighborEdgeNode)
        Inter-Sr neighbor edge node policy path This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        neighborEdgeNode - New value for the property.
      • setNeighborRouterId

        public PolicyBgpNeighborStatus.Builder setNeighborRouterId​(java.lang.String neighborRouterId)
        Router ID of the BGP neighbor. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        neighborRouterId - New value for the property.
      • setRemoteAsNumber

        public PolicyBgpNeighborStatus.Builder setRemoteAsNumber​(java.lang.String remoteAsNumber)
        AS number of the BGP neighbor This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        remoteAsNumber - New value for the property.
      • setRemotePort

        public PolicyBgpNeighborStatus.Builder setRemotePort​(java.lang.Long remotePort)
        TCP port number of remote BGP Connection format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        remotePort - New value for the property.
      • setSourceAddress

        public PolicyBgpNeighborStatus.Builder setSourceAddress​(java.lang.String sourceAddress)
        The Ip address of logical port format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        sourceAddress - New value for the property.
      • setTier0Path

        public PolicyBgpNeighborStatus.Builder setTier0Path​(java.lang.String tier0Path)
        Policy path to Tier0 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        tier0Path - New value for the property.
      • setTimeSinceEstablished

        public PolicyBgpNeighborStatus.Builder setTimeSinceEstablished​(java.lang.Long timeSinceEstablished)
        Time(in seconds) since connection was established. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        timeSinceEstablished - New value for the property.
      • setTotalInPrefixCount

        public PolicyBgpNeighborStatus.Builder setTotalInPrefixCount​(java.lang.Long totalInPrefixCount)
        Sum of in prefixes counts across all address families. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        totalInPrefixCount - New value for the property.
      • setTotalOutPrefixCount

        public PolicyBgpNeighborStatus.Builder setTotalOutPrefixCount​(java.lang.Long totalOutPrefixCount)
        Sum of out prefixes counts across all address families. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        totalOutPrefixCount - New value for the property.