Class PeerGroupUtil
java.lang.Object
org.opendaylight.protocol.bgp.state.PeerGroupUtil
Util for create OpenConfig Peer group with corresponding openConfig state.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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 Details
-
buildPeerGroups
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
-