Thursday, May 24, 2018

EEM Scripting with Dynamic Input

Hi,

So i've got a bit of a weird corner case i'm trying to work here to work around a stupid bug Cisco seem to have introduced with IOS-XE 16 and bridge domain processing which has broken a solution we had working quite well for a long time in 3.16 (long and short, bridge-domain has a VFI member and a port-channel member, but the bridge-domain does not go up if only the VFI is up, it only goes up after removing and re-adding the VFI or admin down / admin up of the bridge-domain construct.

What i want to do is write a script that parses through a number range of bridge-domains, see's if there is a valid bridge-domain in that number range, and if it is run a 'shutdown / no shutdown' on it when the interfaces go down on the local PE or on reload.

I know i can set those 'triggers' but i'm looking for good examples for programatically doing something like this with TCL or EEM.

Does anyone know if this is possible and can point me in the right direction of any resources for doing this?

Essentially the logic is as follows:

  • Active firewall on PE1 has interfaces up
  • Standby firewall on PE2 has interfaces down
  • Standby firewall on PE2 becomes active and interfaces go up
  • Active firewall on PE1 becomes standby and interfaces go down
  • When interfaces go down (trigger), run through list of bridge-domains xxxx to xxxx and then shut / no shut
  • When system has rebooted (trigger), run through list of bridge-domains xxxx to xxxx and then shut / no shut


No comments:

Post a Comment