Commit Graph

13 Commits

Author SHA1 Message Date
Adit Sarfaty df47dde1cc Remove FWaaS V1 code
FWaaS is about to be removed from neutron, and should be removed from
vmware_nsx as well.

Change-Id: I6e621e63896dc6a6e6bbacc464c79319fce1f92d
2019-02-05 06:21:45 +00:00
Adit Sarfaty 5c5bf30c0d Infrastructure support for FWaaS logging
This patch lays the infrastructure to add logging to the
fwaas rules both in NSX-V and NSX-V3, and for FWaaS v1+v2
In the future we should set the "logged" flag from the
configured user objects

Change-Id: Ie12e326ac8a166912908ae038760a682fd46e8af
2017-11-06 10:59:45 +02:00
Gary Kotton 2f0422e7c6 FWaaS: remove deprecated exceptions
Change-Id: Ifc4bf5b87ec4c320f5fb6df7604d3c2f37153e9b
2017-07-27 08:03:20 +00:00
Adit Sarfaty 32e3f9b704 NSX|V: support big ranges in fw rules ports
Adding a range of source/destination ports in a firewall rule should
not be done by adding each specific port, but sending it to the NSX as
a range.

Change-Id: Icbfbb7b02a4dff4863a1e69ccea2777f538fc7c4
2017-07-09 11:25:54 +03:00
Gary Kotton 50cd210d59 Use flake8-import-order plugin
Automate the process

Change-Id: I54451e78c24eef2016293be87760a349df07a384
2017-07-05 00:39:10 -07:00
Adit Sarfaty 6716b68bf0 Revert "Remove neutron-fwaas exception usage"
This reverts commit 2dd98c3665.
And uses the neutron-fwaas exception instead.

Change-Id: I3934f4f0b6e4df3e51ad3038ba6c8a5c528697c2
2017-06-28 08:11:08 +03:00
Tong Liu 2dd98c3665 Remove neutron-fwaas exception usage
As of patch I677721aeada6fd74e8201c7f308771c887b2a1e9, the exception
module has been removed from upstream neutron-fwaas repo. This
breaks our neutron_fwaas driver and unit tests. Remove dependency
of that module in this patch and use the exception defined in
vmware_nsx common instead.

Change-Id: I9fb9df6505fb7493be98723988dc4f6288af1603
2017-06-27 16:39:06 +00:00
Adit Sarfaty 41fb262771 NSX|v: refactor FWaaS driver
The NSX-V FWaaS driver updated the backend router firewall using a different
code than the plugin uses when the router is updated.
This causes code duplication, and ,ultiple bugs.
Now the driver will call the plugin in order to recreate all firewall rules.

Change-Id: I3651cfc0ceafc81b28747476f98a82e30e41a2af
2017-06-17 05:19:57 +00:00
Adit Sarfaty 80d83e2fce NSX|V: Fix FWaaS exceptions
Commit I6faf26d263788d21da078e570487ee4876d04efd moved the fwaas
exceptions to a new file

Change-Id: I1684605a16b7dfb565cbba373397181e5ebefbbd
2017-06-06 11:49:32 +03:00
Adit Sarfaty 4f380132fe NSX|V raise error when FWaaS uses unsupported routers
When attaching a firewall to an unsupported router type, we should
raise an exception, causing the firewall to become inactive.

Change-Id: Ia32ac4e7092138794825b9692d98073745dbb426
2017-06-04 16:12:12 +00:00
Adit Sarfaty 8de331c4d6 NSX|V fix FWaaS rules order when router is added to FW
previous patch took care of the rule order when recreating the edge fw rules.
This patch takes care of the same when the rotuer is added to the firewall.
The FWaaS rules should be added at the correct location between the
rest of the router rules.

Change-Id: I8ac52e6e476b214ded7342d1473670c1d31befef
2017-04-30 10:36:21 +03:00
Adit Sarfaty e04cef8c17 NSX-V| Fix FWaaS rules order
Reorder the FW rules on the edge, so that internal & MD proxy traffic
will always be allowed, but other traffic will go through the FWaaS rules.

In additon support the case of firewall policy with no rules,
and do not add the firewall rules if the router has no external gateway.

Change-Id: Ia4afad53a4b68f87947eec9d0d25007128b174e9
2017-04-24 13:47:22 +03:00
Adit Sarfaty f10dcfe82d NSX-V FWaaS(V1) support
The nsx-v FWaaS driver will add the configured firewall rules to
the router edges.
Currently there is not support for shared routers.
The rules will be edded after the current rules (NAT, LBaaS, external traffic)
for exclusive routers edges and distributed routers PLR edged.

Change-Id: I82ba90070ef4e739a0b5c4463ef03a807e26adfb
2017-04-04 11:15:49 +03:00