Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
pass
class Config(object):
"""Config allows a configuration to be assembled easily.
Configurations are automatically indented following Juniper's style.
A textual representation of the config can be extracted with str().
RenderACL(str(acl_obj), acl_obj.SUFFIX, output_directory,
input_file, write_files)
if nft:
acl_obj = nftables.Nftables(nft, exp_info)
RenderACL(str(acl_obj), acl_obj.SUFFIX, output_directory,
input_file, write_files)
if gcefw:
acl_obj = gce.GCE(gcefw, exp_info)
RenderACL(str(acl_obj), acl_obj.SUFFIX, output_directory,
input_file, write_files)
if paloalto:
acl_obj = paloaltofw.PaloAltoFW(paloalto, exp_info)
RenderACL(str(acl_obj), acl_obj.SUFFIX, output_directory,
input_file, write_files)
# TODO(robankeny) add additional errors.
except (juniper.Error, junipersrx.Error, cisco.Error, ipset.Error,
iptables.Error, speedway.Error, pcap.Error,
aclgenerator.Error, aruba.Error, nftables.Error, gce.Error) as e:
raise ACLGeneratorError(
'Error generating target ACL for %s:\n%s' % (input_file, e))
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
pass
class JuniperFragmentInV6Error(Error):
pass
class Config(object):
pass
class TcpEstablishedWithNonTcp(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
pass
class Config(object):
from capirca.lib import summarizer
import six
from six.moves import range
from absl import logging
# generic error class
class Error(Exception):
pass
class JuniperTermPortProtocolError(Error):
pass
class TcpEstablishedWithNonTcp(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
pass
class Config(object):
"""Config allows a configuration to be assembled easily.
Configurations are automatically indented following Juniper's style.
A textual representation of the config can be extracted with str().
Attributes:
indent: The number of leading spaces on the current line.
tabstop: The number of spaces to indent for a new level.
pass
class JuniperTermPortProtocolError(Error):
pass
class TcpEstablishedWithNonTcp(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
import datetime
from capirca.lib import aclgenerator
from capirca.lib import nacaddr
from capirca.lib import summarizer
import six
from six.moves import range
from absl import logging
# generic error class
class Error(Exception):
pass
class JuniperTermPortProtocolError(Error):
pass
class TcpEstablishedWithNonTcpError(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperTermPortProtocolError(Error):
pass
class TcpEstablishedWithNonTcpError(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):
pass
class JuniperMultipleTerminatingActionError(Error):
# generic error class
class Error(Exception):
pass
class JuniperTermPortProtocolError(Error):
pass
class TcpEstablishedWithNonTcp(Error):
pass
class JuniperDuplicateTermError(Error):
pass
class UnsupportedFilterError(Error):
pass
class PrecedenceError(Error):
pass
class JuniperIndentationError(Error):
pass
class JuniperNextIpError(Error):