class Conpar::Directive::AccessList::EtherType
Class that maps directly to Cisco ethertype ACL definition See www.cisco.com/c/en/us/td/docs/security/asa/asa91/configuration/general/asa_91_general_config/acl_ethertype.html
Constants
- SIGNATURE
(0.1.4): “ethertype” should be followed by “permit” or “deny”
Public Class Methods
new(content="", options={})
click to toggle source
Calls superclass method
Conpar::Directive::AccessList::Base::new
# File lib/conpar/directive/access_list/ether_type.rb, line 10 def initialize(content="", options={}) super @sub_ilk = "ethertype" # access-list access_list_name ethertype # {deny | permit} # {ipx | bpdu | mpls-unicast | mpls-multicast | is-is | any | hex_number} parse_regex = %r/^ (access-list)\s* # Directive Signature (?<name>#{NAME})\s* # ACL Name (?<type>(ethertype))\s* # Ethertype ACL Type (?<permission>(permit|deny))?\s* # permit or deny (?<rule>.+) $/x @match_data = parse_regex.match(@content) self end