Class PeerGroupUtil


  • public final class PeerGroupUtil
    extends Object
    Util for create OpenConfig Peer group with corresponding openConfig state.
    • Method Detail

      • buildPeerGroups

        public static @Nullable PeerGroups buildPeerGroups​(@NonNull List<BGPPeerState> bgpStateConsumer)
        Build Openconfig PeerGroups containing Peer group stats from a list of BGPPeerGroupState.
        Parameters:
        bgpStateConsumer - providing BGPPeerGroupState
        Returns:
        PeerGroups containing Peer group stats
      • buildPeerGroupState

        public static @NonNull PeerGroup buildPeerGroupState​(@NonNull String groupId,
                                                             @NonNull List<BGPPeerState> groups)
        Build Openconfig PeerGroup containing Peer group stats from BGPPeerGroupState.
        Parameters:
        groupId - Peer group Id
        groups - providing state of the group
        Returns:
        PeerGroups containing Peer group stats