Method: Cisco::StpGlobal#initialize

Defined in:
lib/cisco_node_utils/stp_global.rb

#initialize(name) ⇒ StpGlobal

Returns a new instance of StpGlobal.



26
27
28
29
30
31
32
33
34
# File 'lib/cisco_node_utils/stp_global.rb', line 26

def initialize(name)
  fail TypeError unless name.is_a?(String)
  fail ArgumentError unless name == 'default'
  @name = name.downcase
  @bdr = config_get('stp_global', 'bd_range')
  @mr = config_get('stp_global', 'mst_range')
  @mir = config_get('stp_global', 'mst_inst_range')
  @vr = config_get('stp_global', 'vlan_range')
end