[j-nsp] Delete Interface Error
venkata saranu
venkata.saranu at gmail.com
Thu Sep 17 12:57:21 EDT 2009
<rpc>
<edit-config>
<target><candidate/></target>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="
http://xml.juniper.net/junos/9.3R3/junos">
<default-operation>none</default-operation>
<config>
<interfaces>
<interface operation="delete">
<name>ge-1/1/0</name>
</interface>
</interfaces>
</config>
</edit-config>
</rpc>
]]>]]>
<rpc-error>
<error-severity>error</error-severity>
<error-info>
<bad-element>interfaces</bad-element>
</error-info>
<error-message>syntax error, expecting <configuration></error-message>
</rpc-error>
<load-error-count>1</load-error-count>
<rpc-error>
<error-severity>error</error-severity>
<error-message>syntax error</error-message>
</rpc-error>
</rpc-reply>
]]>]]>
On Thu, Sep 17, 2009 at 11:52 AM, Ross Vandegrift <ross at kallisti.us> wrote:
> 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
>
--
o__
-,>/'_----------------------------------------
(_) \ (_) - - - - -వెంకట శరణు - - - -
More information about the juniper-nsp
mailing list