[j-nsp] Delete Interface

Ross Vandegrift ross at kallisti.us
Thu Sep 17 12:52:37 EDT 2009


On Thu, Sep 17, 2009 at 11:21:10AM -0500, venkata saranu wrote:
> i want a netconf command for delete interfaces ge-x/x/x{.....}
> Could you please assist me? we are using MCR using netconf

Submit a document with a default action of "none" and specify the
subtree you'd like to delete with opeartion="delete".  Something like
this should do the trick:

<rpc>
  <edit-config>
    <target><candidate/></target>
    <default-operation>none</default-operation>
    <config>
      <interfaces>
        <interface operation="delete">
           <name>ge-x/x/x</name>
        </interface>
      </interfaces>
    </config>
  </edit-config>
</rpc>
]]>]]>

Here's the reference:
http://www.juniper.net/techpubs/software/junos/junos93/netconf-guide/deleting-configuration-elements.html

-- 
Ross Vandegrift
ross at kallisti.us

"If the fight gets hot, the songs get hotter.  If the going gets tough,
the songs get tougher."
	--Woody Guthrie


More information about the juniper-nsp mailing list