Method: Puppet::Provider::Comware::Interface#xml_change_admin

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

#xml_change_admin(xml) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/puppet/provider/comware/comware_interface.rb', line 123

def xml_change_admin(xml)
  xml.send(:'AdminStatus', (
                         case resource[:admin]
                           when :up then
                             1
                           when :down then
                             2
                         end))
end