MAC addresses in the iptables rules are always added by iptables_manager
with uppercase. It was done like that in [1].
For some reason, iptables on Centos 9 Stream (1.8.7) returns MAC
addresses all in lowercase and difflib library treats such new and old
rules as different ones so iptables manager always tries to remove and
add antispoofing rules which have MAC addresses set.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/844589 /opendev. org/openstack/ neutron/ commit/ 6c2d2744d5e841f 431ae637624dd59 54429f9607
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 6c2d2744d5e841f 431ae637624dd59 54429f9607
Author: Slawek Kaplonski <email address hidden>
Date: Wed Jul 27 20:48:45 2022 +0200
Make iptables rules diff to be case insensitive
MAC addresses in the iptables rules are always added by iptables_manager
with uppercase. It was done like that in [1].
For some reason, iptables on Centos 9 Stream (1.8.7) returns MAC
addresses all in lowercase and difflib library treats such new and old
rules as different ones so iptables manager always tries to remove and
add antispoofing rules which have MAC addresses set.
[1] https:/ /review. opendev. org/c/openstack /neutron/ +/184355
Related-Bug: #1976323 3a1b943d481a9cb d98850552d7
Change-Id: I63e78fdd030f06