Method: Puppet::Provider::Comware::Interface#xml_change_duplex

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

#xml_change_duplex(xml) ⇒ Object



141
142
143
144
145
146
147
148
149
150
# File 'lib/puppet/provider/comware/comware_interface.rb', line 141

def xml_change_duplex(xml)
  xml.send(:'ConfigDuplex', case resource[:duplex]
                              when :full then
                                1
                              when :half then
                                2
                              when :auto then
                                3
                            end)
end