class BgpSessionAnswererUtils {

  static ConfiguredSessionStatus getLocallyBrokenStatus(BgpPassivePeerConfig passivePeerConfig) {
    if (passivePeerConfig.getLocalAs() == null) {
      return ConfiguredSessionStatus.NO_LOCAL_AS;
    } else if (passivePeerConfig.getPeerPrefix() == null) {
      return ConfiguredSessionStatus.NO_REMOTE_PREFIX;
    } else if (passivePeerConfig.getRemoteAsns().isEmpty()) {
      return ConfiguredSessionStatus.NO_REMOTE_AS;
    }
    return null;
  }

  private  BgpSessionAnswererUtils();

}