Managing IOS Configuration Snippets
erikm at buh.org
Fri Feb 28 16:10:32 UTC 2014
On 2/28/14, 10:24 , Leo Bicknell wrote:
> What I have always wanted is a way to group configuration, in particular by customer. Ideally with the ability to see it both as a unified view, and also as a per-customer view.
> For instance:
> customer AAAAA
> interface GigabitEthernet1/2/3.10
> description AAAAA
> ip address 10.0.1.1 255.255.255.0
> router bgp 1
> neighbor 10.0.1.2 prefix-list AAAAA-in in
> ip prefix-list AAAAA-in 10.1.0.0/24
> Basically this follows the two modes in which engineers look at a device. Most of the time is configuring a specific customer, and wanting to be sure they are configured right; including the hard case of "no customer AAAAA", that is making sure all configuration for a specific customer is removed. The rest of the time is typically troubleshooting a network level problem where you want the device view we have today, I see interface Gig1/2/3 is dropping packets, "show run" to see who's configure on it sort of operations.
> I don't know of any platform that has implemented this sort of config framework though.
It's not the cleanest, but in junos you can pretty much get this by
defining a configuration group per customer and applying them all. Your RE
may hate you at commit time, but I've seen this approach work quite well.
More information about the NANOG