Skip to content

Commit

Permalink
BaseLACPRecipe.test_wide_conf(): call grand parent's test_wide_conf()…
Browse files Browse the repository at this point in the history
… method

BaseLACPRecipe reimplements same behaviour as DoubleBondRecipe but adds
multiple IPs. Because direct parent also implements bond device setup
we need to bypass direct parent's `test_wide_conf()` method to prevent
LNST crashing on calling bond device setup twice.
  • Loading branch information
enhaut authored and olichtne committed Oct 25, 2023
1 parent 3e4ad52 commit bb1df09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnst/Recipes/ENRT/BaseLACPRecipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_wide_configuration(self):
it calls switch configuration method.
"""
host1, host2 = self.matched.host1, self.matched.host2
config = super().test_wide_configuration()
config = super(DoubleBondRecipe, self).test_wide_configuration()

ipv4_addr = interface_addresses(self.params.net_ipv4)
ipv6_addr = interface_addresses(self.params.net_ipv6)
Expand Down

0 comments on commit bb1df09

Please sign in to comment.