lib/junos-ez/provider.rb
### ---------------------------------------------------------------
### 'delete!' will cause the item to be removed from the Junos
### configuration
### ---------------------------------------------------------------

'delete!' will cause the item to be removed from the Junos
configuration
' delete! ' will cause the item to be removed from the Junos configuration
def delete!
    return nil unless exists?    
    xml = xml_at_top
    par = xml.instance_variable_get(:@parent)    
    par['delete'] = 'delete'
    xml_on_delete( xml )
    rsp = write_xml_config!( xml.doc.root )
    @has[:_exist] = false
    true 
  end
def delete! return nil unless exists? xml = xml_at_top par = xml . instance_variable_get ( :@parent ) par [ 'delete' ] = 'delete' xml_on_delete ( xml ) rsp = write_xml_config! ( xml . doc . root ) @has [ :_exist ] = false true end
'delete!'
' delete! '
# rsp ... don't return XML, but let's hear from the community...
