Method: Puppet::Provider::Comware::Interface#init_resource
- Defined in:
- lib/puppet/provider/comware/comware_interface.rb
#init_resource ⇒ Object
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/puppet/provider/comware/comware_interface.rb', line 86 def init_resource @ndev_res ||= NetdevComware::Resource.new(self, "Ifmgr/Interfaces/Interface") ndev_config = @ndev_res.getconfig return false unless (ifd = ndev_config.xpath('////Interface')[0]) @ndev_res.set_active_state(ifd) return ifd end |