[j-nsp] Delete Interface
Ross Vandegrift
ross at kallisti.us
Thu Sep 17 13:21:43 EDT 2009
On Thu, Sep 17, 2009 at 12:01:10PM -0500, venkata saranu wrote:
> Got the Error as below
Ah - I missed the top-level configuration tag. Try this instead:
<rpc>
<edit-config>
<target><candidate/></target>
<default-operation>none</default-operation>
<config>
<configuration>
<interfaces>
<interface operation="delete">
<name>ge-1/1/0</name>
</interface>
</interfaces>
</configuration>
</config>
</edit-config>
</rpc>
]]>]]>
Ross
>
> <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>
> ]]>]]>
>
>
> Could you please suggest me ... Thanks in advance...
>
> 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__
> -,>/'_----------------------------------------
> (_) \ (_) - - - - -??????????????? ???????????? - - - -
--
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