WebService-OPNsense
view release on metacpan or search on metacpan
lib/WebService/OPNsense/Constants.pm view on Meta::CPAN
#!/bin/false
# ABSTRACT: Named constants for the OPNsense REST API
# PODNAME: WebService::OPNsense::Constants
use strictures 2;
package WebService::OPNsense::Constants;
$WebService::OPNsense::Constants::VERSION = '0.003';
use Const::Fast qw( const );
use parent qw( Exporter::Tiny );
# Actions
const our $ACTION_BLOCK => 'block';
const our $ACTION_PASS => 'pass';
const our $ACTION_REJECT => 'reject';
# Address families
const our $AF_INET => 'inet';
const our $AF_INET6 => 'inet6';
const our $AF_INET46 => 'inet46';
# Alias types
const our $ALIAS_ASN => 'asn';
const our $ALIAS_AUTHGROUP => 'authgroup';
const our $ALIAS_DYNIPV6HOST => 'dynipv6host';
const our $ALIAS_EXTERNAL => 'external';
const our $ALIAS_GEOIP => 'geoip';
const our $ALIAS_HOST => 'host';
const our $ALIAS_INTERNAL => 'internal';
const our $ALIAS_MAC => 'mac';
const our $ALIAS_NETWORK => 'network';
const our $ALIAS_NETWORK_GROUP => 'networkgroup';
const our $ALIAS_PORT => 'port';
const our $ALIAS_URL => 'url';
const our $ALIAS_URL_JSON => 'urljson';
const our $ALIAS_URL_TABLE => 'urltable';
# Directions
const our $DIRECTION_ANY => 'any';
const our $DIRECTION_IN => 'in';
const our $DIRECTION_OUT => 'out';
# Enabled / Disabled state
const our $OPN_DISABLED => 0;
const our $OPN_ENABLED => 1;
# Gateway
const our $GATEWAY_DEFAULT => 'default';
# Interface names (standard)
const our $INTERFACE_DMZ => 'dmz';
const our $INTERFACE_GUEST => 'guest';
const our $INTERFACE_LAN => 'lan';
const our $INTERFACE_LOOPBACK => 'lo0';
const our $INTERFACE_OPT1 => 'opt1';
const our $INTERFACE_OPT2 => 'opt2';
const our $INTERFACE_OPT3 => 'opt3';
const our $INTERFACE_OPT4 => 'opt4';
const our $INTERFACE_OPT5 => 'opt5';
const our $INTERFACE_OPT6 => 'opt6';
const our $INTERFACE_OPT7 => 'opt7';
const our $INTERFACE_OPT8 => 'opt8';
const our $INTERFACE_OPT9 => 'opt9';
const our $INTERFACE_WAN => 'wan';
const our $INTERFACE_WAN2 => 'wan2';
const our $INTERFACE_WAN_DHCP => 'wan_dhcp';
const our $INTERFACE_WAN_PPPOE => 'wan_pppoe';
# Interface group names
const our $IF_GROUP_DMZ => 'dmz';
const our $IF_GROUP_GUEST => 'guest';
const our $IF_GROUP_LAN => 'lan';
const our $IF_GROUP_OPT1 => 'opt1';
const our $IF_GROUP_OPT2 => 'opt2';
const our $IF_GROUP_OPT3 => 'opt3';
const our $IF_GROUP_OPT4 => 'opt4';
const our $IF_GROUP_OPT5 => 'opt5';
const our $IF_GROUP_OPT6 => 'opt6';
const our $IF_GROUP_OPT7 => 'opt7';
( run in 1.538 second using v1.01-cache-2.11-cpan-9581c071862 )