Use same instance of iptables_manager in L2 agent and extensions
This commit adds common_agent_extension class which is agent API
for L2 extension drivers used e.g. by Linuxbridge agent.
This is necessary to be able to use instance of iptables_manager
used in firewall driver also in L2 extension drivers (like qos).
This patch refactors little bit iptables_manager code to make possible
to initialize e.g. mangle or nat table on demand, even if iptables
is created as "state_less"
Change-Id: I3b66e49b7f176124e8aea3eb96d0d465f1ab1ea0
Closes-Bug: #1736674
(cherry picked from commit cbee0f9f88ff34f70ff19590471b5405e06ff2a9)
Reviewed: https:/ /review. openstack. org/531747 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=df8412b3e83 4bbe38f32e9748a 1f1116e0920e2e
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit df8412b3e834bbe 38f32e9748a1f11 16e0920e2e
Author: Sławek Kapłoński <email address hidden>
Date: Thu Dec 14 14:51:01 2017 +0100
Use same instance of iptables_manager in L2 agent and extensions
This commit adds common_ agent_extension class which is agent API
for L2 extension drivers used e.g. by Linuxbridge agent.
This is necessary to be able to use instance of iptables_manager
used in firewall driver also in L2 extension drivers (like qos).
This patch refactors little bit iptables_manager code to make possible
to initialize e.g. mangle or nat table on demand, even if iptables
is created as "state_less"
Change-Id: I3b66e49b7f1761 24e8aea3eb96d0d 465f1ab1ea0 70ff19590471b54 05e06ff2a9)
Closes-Bug: #1736674
(cherry picked from commit cbee0f9f88ff34f