- @Nullable
- private static Integer getHoldTimer(final Timers timers) {
- if (timers == null) {
- return null;
- }
- final org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.timers
- .Config config = timers.getConfig();
- if (config != null && config.getHoldTime() != null) {
- return config.getHoldTime().intValue();
- }
- return null;
- }
-
- @Nullable
- private static AsNumber getRemotePeerAs(final org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp
- .rev151009.bgp.neighbor.group.Config config) {
- if (config != null) {
- final AsNumber peerAs = config.getPeerAs();
- if (peerAs != null) {
- return peerAs;
- }
- }
- return null;
- }
-
- @Nullable
- private static Integer getRetryTimer(final Timers timers) {
- if (timers == null) {
- return null;
- }
- final org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.timers
- .Config config = timers.getConfig();
- if (config != null && config.getConnectRetry() != null) {
- return config.getConnectRetry().intValue();
- }
- return null;
- }
-