This is another small and simple script for testing network equipment.
May be useful for testing network equipment and services such as EVPN and VPLS.
Before running the script, you need to change the values of the variables in the class instance:
t = MacFlood("vlan.101", 100)
where:
"vlan.101" - the name of the interface through which packets will be sent;
100 - the number of packets.
Result:
A:LAB# show service fdb-mac | match 212330515 | match invert-match mpls
212330515 02:00:00:08:22:b1 sap:1/1/c7/1:101.* L/13 08/01/22 07:26:25
212330515 02:00:00:08:74:7d sap:1/1/c7/1:101.* L/17 08/01/22 07:26:21
212330515 02:00:00:0d:84:ea sap:1/1/c7/1:101.* L/17 08/01/22 07:26:21
212330515 02:00:00:11:25:fe sap:1/1/c7/1:101.* L/13 08/01/22 07:26:25
212330515 02:00:00:12:78:b5 sap:1/1/c7/1:101.* L/17 08/01/22 07:26:22
212330515 02:00:00:14:a9:b4 sap:1/1/c7/1:101.* L/13 08/01/22 07:26:25
212330515 02:00:00:15:22:09 sap:1/1/c7/1:101.* L/16 08/01/22 07:26:22
212330515 02:00:00:1c:d1:fb sap:1/1/c7/1:101.* L/15 08/01/22 07:26:24
212330515 02:00:00:1e:05:2e sap:1/1/c7/1:101.* L/16 08/01/22 07:26:22
212330515 02:00:00:21:14:37 sap:1/1/c7/1:101.* L/12 08/01/22 07:26:26
212330515 02:00:00:21:38:25 sap:1/1/c7/1:101.* L/15 08/01/22 07:26:23
212330515 02:00:00:24:49:d7 sap:1/1/c7/1:101.* L/16 08/01/22 07:26:23
212330515 02:00:00:24:cc:10 sap:1/1/c7/1:101.* L/13 08/01/22 07:26:25
212330515 02:00:00:26:f4:d5 sap:1/1/c7/1:101.* L/14 08/01/22 07:26:24
212330515 02:00:00:28:5e:dc sap:1/1/c7/1:101.* L/17 08/01/22 07:26:21
212330515 02:00:00:28:d7:6d sap:1/1/c7/1:101.* L/15 08/01/22 07:26:23
212330515 02:00:00:2b:95:f3 sap:1/1/c7/1:101.* L/16 08/01/22 07:26:22
212330515 02:00:00:2c:da:f2 sap:1/1/c7/1:101.* L/17 08/01/22 07:26:22
212330515 02:00:00:30:01:20 sap:1/1/c7/1:101.* L/16 08/01/22 07:26:22
212330515 02:00:00:31:dc:ac sap:1/1/c7/1:101.* L/16 08/01/22 07:26:23
212330515 02:00:00:32:cb:91 sap:1/1/c7/1:101.* L/14 08/01/22 07:26:24
212330515 02:00:00:34:17:e6 sap:1/1/c7/1:101.* L/15 08/01/22 07:26:23
212330515 02:00:00:34:b9:f6 sap:1/1/c7/1:101.* L/16 08/01/22 07:26:22
212330515 02:00:00:38:b7:a7 sap:1/1/c7/1:101.* L/13 08/01/22 07:26:25
Press any key to continue (Q to quit)