sonic-buildimage/dockers
pavel-shirshov beaaf3316d [docker-frr]: Use egrep with regexp to match correct TSA rules (#6403)
**- Why I did it**
Earlier today we found a bug in the SONiC TSA implementation.
TSC shows incorrect output (see below) in case we have a route-map which contains TSA route-map as a prefix.
```
admin@str-s6100-acs-1:~$ TSC
Traffic Shift Check:
System Mode: Not consistent
```
The reason is that TSC implementation has too loose regexps in TSA utilities, which match wrong route-map entries:
For example, current TSC matches following
```
route-map TO_BGP_PEER_V4 permit 200
route-map TO_BGP_PEER_V6 permit 200
```
But it should match only
```
route-map TO_BGP_PEER_V4 permit 20
route-map TO_BGP_PEER_V4 deny 30
route-map TO_BGP_PEER_V6 permit 20
route-map TO_BGP_PEER_V6 deny 30
```

**- How I did it**
I fixed it by using egrep with `^` and `$` regexp markers which match begin and end of the line.

**- How to verify it**
1. Add follwing entry to FRR config:
```
str-s6100-acs-1# 
str-s6100-acs-1# conf t
str-s6100-acs-1(config)# route-map TO_BGP_PEER_V4 permit 200 
str-s6100-acs-1(config-route-map)# end
```
2. Use the TSC command and check output. It should show normal.
```
admin@str-s6100-acs-1:~$ TSC
Traffic Shift Check:
System Mode: Normal```
2021-01-20 10:37:10 -08:00
..
docker-base Enable the notify mode of rsyslogd imfile module used for supervisord (#6298) 2020-12-31 17:04:00 -08:00
docker-base-stretch Updated imfile configuration for supervisord logs (#6368) 2021-01-06 18:48:24 -08:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-dhcp-relay [dhcp-relay] Reduce Calls to SONiC Cfggen (#5175) 2020-12-22 09:51:54 -08:00
docker-fpm-frr [docker-frr]: Use egrep with regexp to match correct TSA rules (#6403) 2021-01-20 10:37:10 -08:00
docker-fpm-gobgp [frr] Reduce Calls to SONiC Cfggen (#5176) 2020-12-22 09:51:54 -08:00
docker-fpm-quagga [frr] Reduce Calls to SONiC Cfggen (#5176) 2020-12-22 09:51:54 -08:00
docker-lldp-sv2 [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-nat [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-28 16:12:53 +00:00
docker-orchagent [swss] Reduce Calls to SONiC Cfggen (#5177) 2020-12-22 09:51:54 -08:00
docker-platform-monitor Add a configuration to delay start xcvrd for fast-reboot (#5643) 2020-12-22 09:51:54 -08:00
docker-ptf [docker-ptf] add gnmi python client (#4928) 2020-08-27 08:05:41 -07:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [radv] Reduce Calls to SONiC Cfggen (#5178) 2020-12-22 09:51:54 -08:00
docker-sflow [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-snmp-sv2 [snmp]: Reduce Calls to SONiC Cfggen (#5166) 2020-12-22 09:51:54 -08:00
docker-sonic-mgmt [mgmt docker] move pycryptodome installation to the end of the docker building (#4917) 2020-07-11 09:46:51 -07:00
docker-sonic-mgmt-framework [mgmt-framework] Call sonic-cfggen Once (#4937) 2020-12-22 09:51:54 -08:00
docker-sonic-restapi [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-sonic-telemetry [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-teamd [multi-asic] teamdctl support for multi-asic (#5851) 2020-11-09 12:33:41 -08:00
dockerfile-macros.j2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00