Method: Puppet::Provider::Comware::Interface#linktype_from_comware

Defined in:
lib/puppet/provider/comware/comware_interface.rb

#linktype_from_comware(type) ⇒ Object



52
53
54
55
56
57
58
59
60
61
# File 'lib/puppet/provider/comware/comware_interface.rb', line 52

def linktype_from_comware(type)
  case type
    when 3 then
      :hybrid
    when 2 then
      :trunk
    when 1 then
      :access
  end
end