Method: Cisco::Vlan#mode

Defined in:
lib/cisco_node_utils/vlan.rb

#modeObject



115
116
117
118
119
120
121
122
123
124
# File 'lib/cisco_node_utils/vlan.rb', line 115

def mode
  result = config_get('vlan', 'mode', @vlan_id)
  return default_mode if result.nil?
  # Note: The yaml definition for this property
  # uses 'multiple' as a workaround for a bug
  # in the N7k nxapi code which displays
  # the 'show vlan' output twice.
  result[0].downcase! if result[0][/FABRICPATH/]
  result[0]
end