Skip to content

Commit deb634c

Browse files
authored
Update EEM-interface-move-routes.py
1 parent 2e1bbc0 commit deb634c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

EEM-interface-move-routes/EEM-interface-move-routes.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@
3838
# some of the execution.
3939

4040
cli.configure('no ip route 10.10.1.2 255.255.255.255 10.90.1.1');
41+
# CLI route to negate when original event occurs. Idea being, this is the next hop
42+
# on the other end of the interface that went down.
4143
time.sleep(2)
42-
cli.configure('ip route 10.10.1.2 255.255.255.255 10.90.1.65');
44+
# Sleep, just because. We are doing CLI after all.
45+
cli.configure('ip route 10.10.1.2 255.255.255.255 10.90.1.65');
46+
# CLI route to add when the original event occurs. Next hop of a backup interface.

0 commit comments

Comments
 (0)