[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Netconf! Part Deux
Hi -
> From: "Phil Shafer" <phil@juniper.net>
> To: <netconf@ops.ietf.org>
> Sent: Thursday, April 08, 2004 2:13 PM
> Subject: Netconf! Part Deux
...
> Consider the case where you want to change the address of an
> interface. Since multiple addresses are supported, you really need to
> delete the old one and add the new one. With ABO, this is simple:
>
> <configuration>
> <interfaces>
> <interface>
> <name>so-0/0/0</name>
> <unit>
> <name>0</name>
> <family>
> <inet>
> <address delete="delete">
> <name>10.1.1.1/24</name>
> </address>
> <address> <!-- adding a new one -->
> <name>10.2.2.2/24</name>
> </address>
> </inet>
> </family>
> </unit>
> </interface>
> </interfaces>
> </configuration>
>
> The equivalent in OOV is more verbose:
>
> <delete>
> <configuration>
> <interfaces>
> <interface>
> <name>so-0/0/0</name>
> <unit>
> <name>0</name>
> <family>
> <inet>
> <address>
> <name>10.1.1.1/24</name>
> </address>
> </inet>
> </family>
> </unit>
> </interface>
> </interfaces>
> </configuration>
> </delete>
> <create>
> <configuration>
> <interfaces>
> <interface>
> <name>so-0/0/0</name>
> <unit>
> <name>0</name>
> <family>
> <inet>
> <address>
> <name>10.2.2.2/24</name>
> </address>
> </inet>
> </family>
> </unit>
> </interface>
> </interfaces>
> </configuration>
> </create>
...
Thanks for the detailed comparison.
<scarcasm> Wow. This is *so* much simpler than SNMP.
It feels like trying to do a high-precision caber toss.
</scarcasm>
Seriously, I think this shows how what makes sense for incremental
editing of (the representation of) a configuration isn't necessarily
going to be very pretty for shoveling it around en masse or vice versa.
It's a good reality check for those of us who heard the operators
saying that they wanted the CLI and protocol to be identical.
Randy
--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>