Class PeerGroupUtil
- java.lang.Object
-
- org.opendaylight.protocol.bgp.state.PeerGroupUtil
-
public final class PeerGroupUtil extends Object
Util for create OpenConfig Peer group with corresponding openConfig state.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable PeerGroups
buildPeerGroups(@NonNull List<BGPPeerState> bgpStateConsumer)
Build Openconfig PeerGroups containing Peer group stats from a list of BGPPeerGroupState.static @NonNull PeerGroup
buildPeerGroupState(@NonNull String groupId, @NonNull List<BGPPeerState> groups)
Build Openconfig PeerGroup containing Peer group stats from BGPPeerGroupState.
-
-
-
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 Idgroups
- providing state of the group- Returns:
- PeerGroups containing Peer group stats
-
-