diff --git a/octavia/amphorae/drivers/noop_driver/driver.py b/octavia/amphorae/drivers/noop_driver/driver.py index 37fcaaa9fb..5b0fccb60c 100644 --- a/octavia/amphorae/drivers/noop_driver/driver.py +++ b/octavia/amphorae/drivers/noop_driver/driver.py @@ -80,6 +80,11 @@ class NoopManager(object): self.__class__.__name__, amphora.id) self.amphoraconfig[amphora.id] = (amphora.id, 'finalize amphora') + def post_network_plug(self, amphora): + LOG.debug("Amphora %s no-op, post network plug amphora %s", + self.__class__.__name__, amphora.id) + self.amphoraconfig[amphora.id] = (amphora.id, 'post_network_plug') + class NoopAmphoraLoadBalancerDriver(driver_base.AmphoraLoadBalancerDriver): def __init__(self, log): @@ -118,3 +123,7 @@ class NoopAmphoraLoadBalancerDriver(driver_base.AmphoraLoadBalancerDriver): def finalize_amphora(self, amphora): self.driver.finalize_amphora(amphora) + + def post_network_plug(self, amphora): + + self.driver.post_network_plug(amphora) diff --git a/octavia/tests/unit/amphorae/drivers/test_noop_amphoraloadbalancer_driver.py b/octavia/tests/unit/amphorae/drivers/test_noop_amphoraloadbalancer_driver.py index 0a3fa96adc..f33bf7f2a2 100644 --- a/octavia/tests/unit/amphorae/drivers/test_noop_amphoraloadbalancer_driver.py +++ b/octavia/tests/unit/amphorae/drivers/test_noop_amphoraloadbalancer_driver.py @@ -99,3 +99,9 @@ class NoopAmphoraLoadBalancerDriver(base.TestCase): self.assertEqual((self.amphora.id, 'finalize amphora'), self.driver.driver.amphoraconfig[ self.amphora.id]) + + def test_post_network_plug(self): + self.driver.post_network_plug(self.amphora) + self.assertEqual((self.amphora.id, 'post_network_plug'), + self.driver.driver.amphoraconfig[ + self.amphora.id])