~ubuntu-branches/ubuntu/vivid/neutron-fwaas/vivid-updates

« back to all changes in this revision

Viewing changes to neutron_fwaas/services/firewall/drivers/fwaas_base.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-03-30 11:19:40 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150330111940-2v7kca772me1xuif
Tags: 2015.1~b3-0ubuntu1
* New upstream milestone release:
  - d/control: Align version requirement with upstream, add new dependency
    on oslo-log.
* Enable unit test suite execution:
  - d/control: Switch BD on python-neutron -> neutron-common.
  - d/rules: Enable execution of unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    policy is sent and the whole policy has to be applied atomically. The
57
57
    firewall rules will not get updated individually. This is to avoid problems
58
58
    related to out-of-order notifications or inconsistent behaviour by partial
59
 
    application of rules.
 
59
    application of rules. Argument agent_mode indicates the l3 agent in DVR or
 
60
    DVR_SNAT or LEGACY mode.
60
61
    """
61
62
 
62
63
    @abc.abstractmethod
63
 
    def create_firewall(self, apply_list, firewall):
 
64
    def create_firewall(self, agent_mode, apply_list, firewall):
64
65
        """Create the Firewall with default (drop all) policy.
65
66
 
66
67
        The default policy will be applied on all the interfaces of
69
70
        pass
70
71
 
71
72
    @abc.abstractmethod
72
 
    def delete_firewall(self, apply_list, firewall):
 
73
    def delete_firewall(self, agent_mode, apply_list, firewall):
73
74
        """Delete firewall.
74
75
 
75
76
        Removes all policies created by this instance and frees up
78
79
        pass
79
80
 
80
81
    @abc.abstractmethod
81
 
    def update_firewall(self, apply_list, firewall):
 
82
    def update_firewall(self, agent_mode, apply_list, firewall):
82
83
        """Apply the policy on all trusted interfaces.
83
84
 
84
85
        Remove previous policy and apply the new policy on all trusted
87
88
        pass
88
89
 
89
90
    @abc.abstractmethod
90
 
    def apply_default_policy(self, apply_list, firewall):
 
91
    def apply_default_policy(self, agent_mode, apply_list, firewall):
91
92
        """Apply the default policy on all trusted interfaces.
92
93
 
93
94
        Remove current policy and apply the default policy on all trusted