[j-nsp] Delete Interface
venkata saranu
venkata.saranu at gmail.com
Thu Sep 17 13:01:10 EDT 2009
Hi The following is the config in the router interfaces{
ge-1/1/0 {
link-mode full-duplex;
gigether-options {
no-auto-negotiation;
}
unit 0 {
family inet {
address 4.4.4.6/30;
}
}
}
}
I want to delete this using netconf could you please suggest me
I tried
<rpc>
<edit-config>
<target><candidate/></target>
<default-operation>none</default-operation>
<config>
<interfaces>
<interface operation="delete">
<name>ge-1/1/0</name>
</interface>
</interfaces>
</config>
</edit-config>
</rpc>
]]>]]>
Got the Error as below
<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__
-,>/'_----------------------------------------
(_) \ (_) - - - - -వెంకట శరణు - - - -
More information about the juniper-nsp
mailing list