Class: Ansible::Ruby::Modules::Ce_acl

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb

Overview

Manages base ACL configurations on HUAWEI CloudEngine switches.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#acl_descriptionObject?

Returns ACL description. The value is a string of 1 to 127 characters.

Returns:

  • (Object, nil)

    ACL description. The value is a string of 1 to 127 characters.



26
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 26

attribute :acl_description

#acl_nameObject

Returns ACL number or name. For a numbered rule group, the value ranging from 2000 to 2999 indicates a basic ACL. For a named rule group, the value is a string of 1 to 32 case-sensitive characters starting with a letter, spaces not supported.

Returns:

  • (Object)

    ACL number or name. For a numbered rule group, the value ranging from 2000 to 2999 indicates a basic ACL. For a named rule group, the value is a string of 1 to 32 case-sensitive characters starting with a letter, spaces not supported.



16
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 16

attribute :acl_name

#acl_numObject?

Returns ACL number. The value is an integer ranging from 2000 to 2999.

Returns:

  • (Object, nil)

    ACL number. The value is an integer ranging from 2000 to 2999.



20
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 20

attribute :acl_num

#acl_stepObject?

Returns ACL step. The value is an integer ranging from 1 to 20. The default value is 5.

Returns:

  • (Object, nil)

    ACL step. The value is an integer ranging from 1 to 20. The default value is 5.



23
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 23

attribute :acl_step

#frag_type:fragment, ...

Returns Type of packet fragmentation.

Returns:

  • (:fragment, :clear_fragment, nil)

    Type of packet fragmentation.



45
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 45

attribute :frag_type

#log_flag:yes, ...

Returns Flag of logging matched data packets.

Returns:

  • (:yes, :no, nil)

    Flag of logging matched data packets.



58
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 58

attribute :log_flag

#rule_action:permit, ...

Returns Matching mode of basic ACL rules.

Returns:

  • (:permit, :deny, nil)

    Matching mode of basic ACL rules.



35
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 35

attribute :rule_action

#rule_descriptionObject?

Returns Description about an ACL rule. The value is a string of 1 to 127 characters.

Returns:

  • (Object, nil)

    Description about an ACL rule. The value is a string of 1 to 127 characters.



55
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 55

attribute :rule_description

#rule_idObject?

Returns ID of a basic ACL rule in configuration mode. The value is an integer ranging from 0 to 4294967294.

Returns:

  • (Object, nil)

    ID of a basic ACL rule in configuration mode. The value is an integer ranging from 0 to 4294967294.



32
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 32

attribute :rule_id

#rule_nameObject?

Returns Name of a basic ACL rule. The value is a string of 1 to 32 characters. The value is case-insensitive, and cannot contain spaces or begin with an underscore (_).

Returns:

  • (Object, nil)

    Name of a basic ACL rule. The value is a string of 1 to 32 characters. The value is case-insensitive, and cannot contain spaces or begin with an underscore (_).



29
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 29

attribute :rule_name

#source_ipObject?

Returns Source IP address. The value is a string of 0 to 255 characters.The default value is 0.0.0.0. The value is in dotted decimal notation.

Returns:

  • (Object, nil)

    Source IP address. The value is a string of 0 to 255 characters.The default value is 0.0.0.0. The value is in dotted decimal notation.



39
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 39

attribute :source_ip

#src_maskObject?

Returns Mask of a source IP address. The value is an integer ranging from 1 to 32.

Returns:

  • (Object, nil)

    Mask of a source IP address. The value is an integer ranging from 1 to 32.



42
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 42

attribute :src_mask

#state:present, ...

Returns Specify desired state of the resource.

Returns:

  • (:present, :absent, :delete_acl, nil)

    Specify desired state of the resource.



12
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 12

attribute :state

#time_rangeObject?

Returns Name of a time range in which an ACL rule takes effect. The value is a string of 1 to 32 characters. The value is case-insensitive, and cannot contain spaces. The name must start with an uppercase or lowercase letter. In addition, the word “all” cannot be specified as a time range name.

Returns:

  • (Object, nil)

    Name of a time range in which an ACL rule takes effect. The value is a string of 1 to 32 characters. The value is case-insensitive, and cannot contain spaces. The name must start with an uppercase or lowercase letter. In addition, the word “all” cannot be specified as a time range name.



52
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 52

attribute :time_range

#vrf_nameObject?

Returns VPN instance name. The value is a string of 1 to 31 characters.The default value is public.

Returns:

  • (Object, nil)

    VPN instance name. The value is a string of 1 to 31 characters.The default value is public.



49
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_acl.rb', line 49

attribute :vrf_name