Method: Puppet::Provider::Comware::Interface#xml_change_linktype

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

#xml_change_linktype(xml) ⇒ Object



164
165
166
167
168
169
170
171
172
173
# File 'lib/puppet/provider/comware/comware_interface.rb', line 164

def xml_change_linktype(xml)
  xml.send(:'LinkType', case resource[:linktype]
                          when :access then
                            1
                          when :trunk then
                            2
                          when :hybrid then
                            3
                        end)
end