private boolean isLeadVdcForGeoUpgrade(){
  String localId=drUtil.getLocalVdcShortId();
  String strVdcIds=targetVdcPropInfo.getProperty(VdcConfigUtil.VDC_IDS);
  String[] vdcIds=strVdcIds.split(",");
  for (  String id : vdcIds) {
    if (localId.compareToIgnoreCase(id) > 0) {
      log.info("Current VDC {} is greater than {}.",localId,id);
      return false;
    }
  }
  log.info("Current VDC {} is the lead in current geo {}",localId,strVdcIds);
  return true;
}

private boolean isLeadVdcForGeoUpgrade ( ) { String localId = drUtil . getLocalVdcShortId ( ) ; String strVdcIds = targetVdcPropInfo . getProperty ( VdcConfigUtil . VDC_IDS ) ; String [ ] vdcIds = strVdcIds . split ( "," ) ; for ( String id : vdcIds ) { if ( localId . compareToIgnoreCase ( id ) > 0 ) { log . info ( "Current VDC {} is greater than {}." , localId , id ) ; return false ; } } log . info ( "Current VDC {} is the lead in current geo {}" , localId , strVdcIds ) ; return true ; }
we pick only one vdc assumes the role to rotate ipsec key in post yoda . as default the vdc with least vdc short id is the lead
