Class: NSXDriver::TransportZone

Inherits:
NSXComponent show all
Defined in:
lib/transport_zone.rb

Overview

Class Transport Zone

Direct Known Subclasses

NSXTtz, NSXVtz

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NSXComponent

#initialize

Constructor Details

This class inherits a constructor from NSXDriver::NSXComponent

Instance Attribute Details

#tz_idObject (readonly)

ATTRIBUTES



22
23
24
# File 'lib/transport_zone.rb', line 22

def tz_id
  @tz_id
end

Class Method Details

.new_child(nsx_client) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/transport_zone.rb', line 24

def self.new_child(nsx_client)
    case nsx_client.nsx_type.upcase
    when NSXConstants::NSXT
        NSXTtz.new(nsx_client)
    when NSXConstants::NSXV
        NSXVtz.new(nsx_client)
    else
        error_msg = "Unknown NSX type: #{nsx_client.nsx_type}"
        error = NSXError::UnknownObject.new(error_msg)
        raise error
    end
end

Instance Method Details

#tzsObject

METHODS Return the transport zones list



39
# File 'lib/transport_zone.rb', line 39

def tzs; end