public Set<String> showZoneNamesForPwwn(String pwwn,Integer vsanId,boolean activeOnly) throws NetworkDeviceControllerException {
  Set<String> zoneNames=Sets.newHashSet();
  SSHPrompt[] prompts={SSHPrompt.POUND,SSHPrompt.GREATER_THAN};
  StringBuilder buf=new StringBuilder();
  String cmdKey=activeOnly ? "MDSDialog.showZone.pwwn.active.cmd" : "MDSDialog.showZone.pwwn.cmd";
  String payload=MessageFormat.format(MDSDialogProperties.getString(cmdKey),pwwn,vsanId.toString());
  sendWaitFor(payload,defaultTimeout,prompts,buf);
  String[] lines=getLines(buf);
  String[] regex={MDSDialogProperties.getString("MDSDialog.zoneName.match")};
  String[] groups=new String[10];
  for (  String line : lines) {
    int index=match(line,regex,groups);
switch (index) {
case 0:
      zoneNames.add(groups[0]);
    break;
}
}
return zoneNames;
}

public Set < String > showZoneNamesForPwwn ( String pwwn , Integer vsanId , boolean activeOnly ) throws NetworkDeviceControllerException { Set < String > zoneNames = Sets . newHashSet ( ) ; SSHPrompt [ ] prompts = { SSHPrompt . POUND , SSHPrompt . GREATER_THAN } ; StringBuilder buf = new StringBuilder ( ) ; String cmdKey = activeOnly ? "MDSDialog.showZone.pwwn.active.cmd" : "MDSDialog.showZone.pwwn.cmd" ; String payload = MessageFormat . format ( MDSDialogProperties . getString ( cmdKey ) , pwwn , vsanId . toString ( ) ) ; sendWaitFor ( payload , defaultTimeout , prompts , buf ) ; String [ ] lines = getLines ( buf ) ; String [ ] regex = { MDSDialogProperties . getString ( "MDSDialog.zoneName.match" ) } ; String [ ] groups = new String [ 10 ] ; for ( String line : lines ) { int index = match ( line , regex , groups ) ; switch ( index ) { case 0 : zoneNames . add ( groups [ 0 ] ) ; break ; } } return zoneNames ; }
get list of zone names where the given pwwn belongs to
