Modified amphora driver spec to include a new, optional method

Updated spec to include method and description for network plug operations
potentially necessary on an amphora

Updated interface to include optional method and description for network plug
operations potentially necessary on an amphora

Change-Id: Iaee3033796d4890a549c25a7327cada81bdf0384
This commit is contained in:
Trevor Vardeman 2015-03-23 13:32:11 -05:00
parent 10e3fb0f69
commit 4c8e6d8ab2
2 changed files with 21 additions and 0 deletions

View File

@ -144,6 +144,20 @@ class AmphoraLoadBalancerDriver(object):
"""
pass
def post_network_plug(self, amphora):
"""Called after amphora added to network
:param amphora: amphora object, needs id and network ip(s)
:type amphora: object
This method is optional to implement. After adding an amphora to a
network, there may be steps necessary on the amphora to allow it to
access said network. Ex: creating an interface on an amphora for a
neutron network to utilize.
"""
pass
@six.add_metaclass(abc.ABCMeta)
class HealthMixin(object):

View File

@ -87,6 +87,13 @@ Establish a base class to model the desire functionality:
"""
pass
def post_network_plug(self, amphora):
"""
OPTIONAL - this method will be called after adding a compute instance to a network.
This will perform any necessary actions to allow for connectivity for that network
on that instance.
"""
The referenced listener is a listener object and vip a vip as described
in our model. The model is detached from the DB so the driver can't write