Skip to content

Commit

Permalink
Publish Nftables generator code rewrite. Adds support for IPv6 term r…
Browse files Browse the repository at this point in the history
…endering.

PiperOrigin-RevId: 452424470
  • Loading branch information
TheLinuxGuy authored and Capirca Team committed Jun 2, 2022
1 parent 8c9e664 commit 73b210a
Show file tree
Hide file tree
Showing 12 changed files with 1,187 additions and 2,173 deletions.
10 changes: 0 additions & 10 deletions capirca/aclgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
from capirca.lib import junipersrx
from capirca.lib import k8s
from capirca.lib import naming
from capirca.lib import newnftables
from capirca.lib import nftables
from capirca.lib import nsxv
from capirca.lib import openconfig
Expand Down Expand Up @@ -187,7 +186,6 @@ def RenderFile(base_directory: str, input_file: pathlib.Path,
srx = False
jsl = False
nft = False
newnft = False
win_afw = False
nxacl = False
xacl = False
Expand Down Expand Up @@ -263,8 +261,6 @@ def RenderFile(base_directory: str, input_file: pathlib.Path,
xacl = copy.deepcopy(pol)
if 'nftables' in platforms:
nft = copy.deepcopy(pol)
if 'newnftables' in platforms:
newnft = copy.deepcopy(pol)
if 'gce' in platforms:
gcefw = copy.deepcopy(pol)
if 'gcp_hf' in platforms:
Expand Down Expand Up @@ -369,11 +365,6 @@ def RenderFile(base_directory: str, input_file: pathlib.Path,
RenderACL(
str(acl_obj), acl_obj.SUFFIX, output_directory, input_file,
write_files)
if newnft:
acl_obj = newnftables.NewNftables(newnft, exp_info)
RenderACL(
str(acl_obj), acl_obj.SUFFIX, output_directory, input_file,
write_files)
if jsl:
acl_obj = srxlo.SRXlo(jsl, exp_info)
RenderACL(
Expand Down Expand Up @@ -435,7 +426,6 @@ def RenderFile(base_directory: str, input_file: pathlib.Path,
aclgenerator.Error,
aruba.Error,
nftables.Error,
newnftables.Error,
gce.Error,
cloudarmor.Error,
k8s.Error) as e:
Expand Down
Loading

0 comments on commit 73b210a

Please sign in to comment.