Skip to content

Commit

Permalink
next batch of templates
Browse files Browse the repository at this point in the history
  • Loading branch information
cicharka committed May 6, 2024
1 parent 04d0e86 commit e021507
Show file tree
Hide file tree
Showing 27 changed files with 1,076 additions and 545 deletions.
583 changes: 407 additions & 176 deletions playbooks/tests/test_feature_templates.yml

Large diffs are not rendered by default.

236 changes: 208 additions & 28 deletions plugins/doc_fragments/feature_template_cisco_aaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,29 @@ class ModuleDocFragment(object):
description: Cisco AAA Feature Template configuration
type: dict
suboptions:
authentication_group:
description:
- 'Whether to enable the authentication group, GUI equivalent: Authentication
Param'
required: false
default: false
type: bool
accounting_group:
description:
- 'Whether to enable the accounting group, GUI equivalent: Accounting
Param'
required: false
default: false
type: bool
server_auth_order:
description:
- ServerGroups authentication order to user access
required: false
default: local
type: str
user:
description:
- List of user configurations
- List of local user configurations
required: false
default: null
type: list
Expand Down Expand Up @@ -47,27 +67,132 @@ class ModuleDocFragment(object):
description:
- The privilege level for the user
required: false
default: null
default: '15'
type: str
choices:
- '1'
- '15'
pubkey_chain:
description:
- List of public keys for the user
required: false
default: []
type: list
elements: str
authentication_group:
elements: dict
suboptions:
key_string:
description:
- Set the RSA key string
required: true
default: null
type: str
key_type:
description:
- Only RSA is supported
required: false
default: ssh-rsa
type: str
accounting_rules:
description:
- Whether to enable the authentication group
- Configure the accounting rules
required: false
default: null
type: list
elements: dict
suboptions:
rule_id:
description:
- Accounting Rule ID
required: true
default: null
type: str
method:
description:
- Configure Accounting Method
required: true
default: null
type: str
choices:
- commands
- exec
- network
- system
level:
description:
- Privilege level when method is commands
required: false
default: null
type: str
choices:
- '1'
- '15'
start_stop:
description:
- Enable Start-Stop
required: false
default: true
type: bool
group:
description:
- List of groups.
required: true
default: null
type: str
authorization_console:
description:
- For enabling console authorization
required: false
default: null
type: bool
accounting_group:
authorization_config_commands:
description:
- Whether to enable the accounting group
- For configuration mode commands
required: false
default: null
type: bool
authorization_rules:
description:
- Configure the accounting rules
required: false
default: null
type: list
elements: dict
suboptions:
rule_id:
description:
- Authorization Rule ID
required: true
default: null
type: str
method:
description:
- Configure Authorization Method
required: true
default: null
type: str
choices:
- commands
level:
description:
- Privilege level when method is commands
required: false
default: null
type: str
choices:
- '1'
- '15'
group:
description:
- List of groups.
required: true
default: null
type: str
authenticated:
description:
- Succeed if user has authenticated
required: false
default: false
type: bool
radius:
description:
- List of Radius group configurations
Expand Down Expand Up @@ -113,26 +238,26 @@ class ModuleDocFragment(object):
- The authentication port for the RADIUS server
required: false
default: null
type: str
type: int
acct_port:
description:
- The accounting port for the RADIUS server
required: false
default: null
type: str
type: int
timeout:
description:
- The timeout period in seconds for the RADIUS server
required: false
default: null
type: str
type: int
retransmit:
description:
- The number of retransmit attempts for the RADIUS
server
required: false
default: null
type: str
type: int
key:
description:
- The key for the RADIUS server
Expand All @@ -157,6 +282,40 @@ class ModuleDocFragment(object):
required: false
default: null
type: str
radius_client:
description:
- Specify a RADIUS client
required: false
default: null
type: list
elements: dict
suboptions:
ip:
description:
- The Client IP
required: true
default: null
type: str
vpn:
description:
- The VPN Configuration
required: true
default: null
type: list
elements: dict
suboptions:
name:
description:
- VPN ID
required: true
default: null
type: str
server_key:
description:
- Specify a RADIUS client server-key
required: false
default: null
type: str
domain_stripping:
description:
- The domain stripping configuration
Expand All @@ -167,9 +326,37 @@ class ModuleDocFragment(object):
- 'yes'
- 'no'
- right-to-left
authentication_type:
description:
- Authentication Type
required: false
default: any
type: str
choices:
- any
- all
- session-key
port:
description:
- The port number for AAA
- Specify Radius Dynamic Author Port
required: false
default: null
type: str
server_key_password:
description:
- Specify a radius dynamic author server-key
required: false
default: null
type: str
cts_authorization_list:
description:
- Specify a radius dynamic author server-key
required: false
default: null
type: str
radius_trustsec_group:
description:
- RADIUS trustsec group
required: false
default: null
type: str
Expand All @@ -192,7 +379,7 @@ class ModuleDocFragment(object):
- The VPN ID for the TACACS+ group
required: false
default: null
type: str
type: int
source_interface:
description:
- The source interface for the TACACS+ group
Expand All @@ -213,24 +400,24 @@ class ModuleDocFragment(object):
required: true
default: null
type: str
key:
description:
- The key for the TACACS+ server
required: true
default: null
type: str
port:
description:
- The port for the TACACS+ server
required: false
default: null
type: str
type: int
timeout:
description:
- The timeout period in seconds for the TACACS+ server
required: false
default: null
type: str
key:
description:
- The key for the TACACS+ server
required: true
default: null
type: str
type: int
secret_key:
description:
- The secret key for the TACACS+ server
Expand All @@ -243,11 +430,4 @@ class ModuleDocFragment(object):
required: false
default: null
type: str
server_auth_order:
description:
- Authentication order to user access
required: false
default: null
type: list
elements: str
'''
4 changes: 2 additions & 2 deletions plugins/doc_fragments/feature_template_cisco_bfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class ModuleDocFragment(object):
description:
- Whether to enable Path MTU Discovery
required: false
default: null
type: str
default: true
type: bool
dscp:
description:
- The DSCP value used for BFD packets
Expand Down
18 changes: 9 additions & 9 deletions plugins/doc_fragments/feature_template_cisco_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ModuleDocFragment(object):
- Whether logging to disk is enabled
required: false
default: null
type: str
type: bool
size:
description:
- The maximum file size for the log file
Expand Down Expand Up @@ -119,14 +119,14 @@ class ModuleDocFragment(object):
description:
- Whether to enable TLS encryption
required: false
default: null
type: str
default: false
type: bool
custom_profile:
description:
- Whether to use a custom TLS profile
required: false
default: null
type: str
default: false
type: bool
profile:
description:
- The custom TLS profile to use
Expand Down Expand Up @@ -178,14 +178,14 @@ class ModuleDocFragment(object):
description:
- Whether to enable TLS encryption for the IPv6 server
required: false
default: null
type: str
default: false
type: bool
custom_profile:
description:
- Whether to use a custom TLS profile for the IPv6 server
required: false
default: null
type: str
default: false
type: bool
profile:
description:
- The custom TLS profile to use for the IPv6 server
Expand Down
Loading

0 comments on commit e021507

Please sign in to comment.