VPNaaS enhance abstract methods for service driver APIs

Bug #1326793 reported by Paul Michali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Ly Loi

Bug Description

Currently an ABC is defined (VpnDriver) for the service driver APIs. For some of the methods that must be implemented by the vendor and reference service drivers, there is an abstract method defined in this class to ensure that the child classes implement the method:

    @abc.abstractmethod
    def create_vpnservice(self, context, vpnservice):
        pass

    @abc.abstractmethod
    def update_vpnservice(
        self, context, old_vpnservice, vpnservice):
        pass

    @abc.abstractmethod
    def delete_vpnservice(self, context, vpnservice):
        pass

However, for other methods, there are no abstract methods defined in VpnDriver. Fortunately, the reference implementation and every provider currently implement these methods in their child classes, but it would be good to enforce this in the ABC, so that any new service drivers will be sure to implement.

This is a low-hanging fruit enhancement, ideal for new contributors.

Tags: vpnaas
Ly Loi (lyloi)
Changed in neutron:
status: New → Incomplete
assignee: nobody → Ly Loi (lyloi)
status: Incomplete → In Progress
Changed in neutron:
importance: Undecided → Low
Paul Michali (pcm)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/109087

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/109087
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=940d125922f16ae8c2aa4187b46304fc66648c52
Submitter: Jenkins
Branch: master

commit 940d125922f16ae8c2aa4187b46304fc66648c52
Author: Ly Loi <email address hidden>
Date: Tue Jul 22 14:22:12 2014 -0700

    Define some abstract methods in VpnDriver class

    Define the <op>_ipsec_site_connection() methods to ensure any new
    service drivers will implement them.

    Closes-Bug: 1326793

    Change-Id: Idfe67632893592859990db486393a7108362447e

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.