[169495] in North American Network Operators' Group
Re: Managing IOS Configuration Snippets
daemon@ATHENA.MIT.EDU (Leo Bicknell)
Fri Feb 28 10:25:15 2014
From: Leo Bicknell <bicknell@ufp.org>
Date: Fri, 28 Feb 2014 09:24:37 -0600
To: nanog list <nanog@nanog.org>
In-Reply-To: <73206985-A85C-4B6A-ACF9-4C997FB3FDE0@comcast.net>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org
--Apple-Mail=_31086C4C-4B78-4184-90A4-833ED4A1DBA4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
On Feb 27, 2014, at 7:38 PM, Keegan Holley <no.spam@comcast.net> wrote:
> Putting aside the fact that snippets aren=92t a good way to =
conceptualize deployed router code, my gut still tells me to question =
the question here.
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
end
customer BBBBB
interface GigabitEthernet1/2/3.11
description BBBBB
ip address 10.0.2.1 255.255.255.0
router bgp 1
neighbor 10.0.2.2 prefix-list BBBBB-in in
ip prefix-list BBBBB-in 10.2.0.0/24
end
Then I should be able to do:
show run - Normal output like we see today, the "device" view.
customer AAAAA show run - Same format as I have above, just config =
relevant to customer AAAAA.
I can even see extending the tag to work with some other commands:
customer AAAAA show int
customer AAAAA show bgp ipv4 uni sum
customer AAAAA show ip prefix-list
The same functionality would work for snippets:
customer ntp-servers-v1.0
ntp server 1.2.3.4
ntp server 1.2.3.5
ntp server 1.2.3.6
end
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.
--=20
Leo Bicknell - bicknell@ufp.org - CCIE 3440
PGP keys at http://www.ufp.org/~bicknell/
--Apple-Mail=_31086C4C-4B78-4184-90A4-833ED4A1DBA4
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail
-----BEGIN PGP SIGNATURE-----
iQIVAwUBUxCqN7N3O8aJIdTMAQKsHw/8CW0oGYW6XoN/S48TlE2C+kW3I7uDoJ4S
sLgAZWoakvoH+XAQoq2XGWu3eIC+lnIjObFdjno6b5eCmohPDVxAfFqzr7S5mNvP
DBs6Mems+tH0szKm5iq74LrrAuYUsPY8ELG+qR85xXQxnWxiWghXpW98mqKalKSv
Svb2nSQaUXeQllkkg89cWE1y4mHZf8pE2m9JNRrzkjY+vz2e14tQBlsHjO0EDTr7
DQJ0Soe1X8nJEMvf8f75CNGPEdqfi5ss76NlsBva91KZ9h8zEHeP0wX9/vtCdvPP
nDunlBZr/AU3nMJjdAOLBZoL7oq7s7h+X6VXADXudZQ94tLAdzHRxJDb2bWpfmxw
to28++3lv0wovnbzuyWI4VXoecGPjRYiH12QbQxoifFjSeaZ5xcRiYbVBkgwk5Oo
zXsyOlvM9PVvWX//+Ti3LBB52l+CixDPk8vplmJtw90oJy7g/DfTj9X2sa7S5X2/
i72EmGC/6ER0r3a9W7V6tVT/Cu9qmYICJmWv9789euD7XcRWgjSxAY/TtKi42eKQ
+DY2XxzAgcVVQXCCzLjCLVM3AcUStA2L74XERlhAcN0Yq/yOSX8LjUFQRIjdbeVf
hSaAZ41EsSKiep7qiWjJBTMuYAf5Oevk9WAUyLfJ90fkqKlIvnwu1Jq5QSyYb+0e
2NOENSSSit0=
=5IOo
-----END PGP SIGNATURE-----
--Apple-Mail=_31086C4C-4B78-4184-90A4-833ED4A1DBA4--