lib/junos-ez/l2_ports/vlan_l2ng.rb
## overload the xml_on_delete method since we may need
## to do some cleanup work in the [edit vlans] stanza

overload the xml_on_delete method since we may need
to do some cleanup work in the [edit vlans] stanza
overload the xml_on_delete method since we may need to do some cleanup work in the [ edit vlans ] stanza
def xml_on_delete( xml )
    @ifd = xml.instance_variable_get(:@parent).at_xpath('ancestor::interface')
    @ifd.xpath('//native-vlan-id').remove      
    return unless @under_vlans
    return if @under_vlans.empty?
    _xml_rm_under_vlans( xml, @under_vlans )
  end
def xml_on_delete ( xml ) @ifd = xml . instance_variable_get ( :@parent ) . at_xpath ( 'ancestor::interface' ) @ifd . xpath ( '//native-vlan-id' ) . remove return unless @under_vlans return if @under_vlans . empty? _xml_rm_under_vlans ( xml , @under_vlans ) end
overload the xml_on_delete method since we may need
to do some cleanup work in the [edit vlans] stanza
overload the xml_on_delete method since we may need to do some cleanup work in the [ edit vlans ] stanza
## remove the element from the get-config    

xml
<not_specific>