server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
# determine server is vserver/FW/SLB
determine server is vserver/FW/SLB
determine server is vserver / FW / SLB
def determine_server_type(vserver)
    return 'FW'  if vserver['vserverId'][0] =~ /^.*-S-0001/
    return 'SLB' if vserver['vnics'][0]['vnic'][0]['nicNo'][0] != '0'
    return 'vserver'
  end
def determine_server_type ( vserver ) return 'FW' if vserver [ 'vserverId' ] [ 0 ] =~ / ^.*-S-0001 / return 'SLB' if vserver [ 'vnics' ] [ 0 ] [ 'vnic' ] [ 0 ] [ 'nicNo' ] [ 0 ] != '0' return 'vserver' end
determine server is vserver/FW/SLB
determine server is vserver / FW / SLB
# check vserver_id (0001 for FW) or nicNo (>0 for SLB)
vserver
<not_specific>