Skip to content

Commit

Permalink
Resolving comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed May 31, 2024
1 parent 99385d6 commit 31239da
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ interface Management1

| Authentication Attribute | Value |
| ------------------------ | ----- |
| Captive-portal | Enabled |
| URL | http://portal-nacm08/captiveredirect/ |
| SSL profile | Profile1 |
| Access-list IPv4 | ACL |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dot1x system-auth-control
dot1x protocol lldp bypass
dot1x dynamic-authorization
dot1x
!
supplicant profile Profile1
identity user_id1
eap-method tls
Expand All @@ -36,7 +35,6 @@ dot1x
radius av-pair service-type
radius av-pair framed-mtu 1500
supplicant disconnect cached-results timeout 79 seconds
captive-portal
captive-portal url http://portal-nacm08/captiveredirect/ ssl profile Profile1
captive-portal access-list ipv4 ACL
captive-portal start limit infinite
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recovery_action_reauthenticate</samp>](## "dot1x.aaa.unresponsive.recovery_action_reauthenticate") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;accounting_update_interval</samp>](## "dot1x.aaa.accounting_update_interval") | Integer | | | Min: 5<br>Max: 65535 | Interval period in seconds. |
| [<samp>&nbsp;&nbsp;captive_portal</samp>](## "dot1x.captive_portal") | Dictionary | | | | Web authentication feature authenticates a supplicant through a web page, referred to as a captive portal. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;enabled</samp>](## "dot1x.captive_portal.enabled") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;enabled</samp>](## "dot1x.captive_portal.enabled") | Boolean | | | | The `enabled` key is mutually exclusive with `url` and `ssl_profile`. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;url</samp>](## "dot1x.captive_portal.url") | String | | | | Supported URL type:<br> - http: http://<hostname>[:<port>]<br> - https: https://<hostname>[:<port>] |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;ssl_profile</samp>](## "dot1x.captive_portal.ssl_profile") | String | | | | SSL profile name. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;ssl_profile</samp>](## "dot1x.captive_portal.ssl_profile") | String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;start_limit_infinite</samp>](## "dot1x.captive_portal.start_limit_infinite") | Boolean | | | | Set captive-portal start limit to infinte. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;access_list_ipv4</samp>](## "dot1x.captive_portal.access_list_ipv4") | String | | | | Standard access-list name. |
| [<samp>&nbsp;&nbsp;supplicant</samp>](## "dot1x.supplicant") | Dictionary | | | | |
Expand Down Expand Up @@ -130,14 +130,14 @@

# Web authentication feature authenticates a supplicant through a web page, referred to as a captive portal.
captive_portal:

# The `enabled` key is mutually exclusive with `url` and `ssl_profile`.
enabled: <bool>

# Supported URL type:
# - http: http://<hostname>[:<port>]
# - https: https://<hostname>[:<port>]
url: <str>

# SSL profile name.
ssl_profile: <str>

# Set captive-portal start limit to infinte.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ keys:
keys:
enabled:
type: bool
description: The `enabled` key is mutually exclusive with `url` and `ssl_profile`.
url:
type: str
description: |-
Expand All @@ -161,7 +162,6 @@ keys:
- https: https://<hostname>[:<port>]
ssl_profile:
type: str
description: SSL profile name.
start_limit_infinite:
type: bool
description: Set captive-portal start limit to infinte.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@

| Authentication Attribute | Value |
| ------------------------ | ----- |
{% if dot1x.captive_portal.enabled is arista.avd.defined(true) %}
| Captive-portal | Enabled |
{% endif %}
{% if dot1x.captive_portal.url is arista.avd.defined %}
{% if dot1x.captive_portal.url is arista.avd.defined or dot1x.captive_portal.ssl_profile is arista.avd.defined %}
{% if dot1x.captive_portal.url is arista.avd.defined %}
| URL | {{ dot1x.captive_portal.url }} |
{% endif %}
{% if dot1x.captive_portal.ssl_profile is arista.avd.defined %}
{% endif %}
{% if dot1x.captive_portal.ssl_profile is arista.avd.defined %}
| SSL profile | {{ dot1x.captive_portal.ssl_profile }} |
{% endif %}
{% elif dot1x.captive_portal.enabled is arista.avd.defined %}
| Captive-portal enabled | {{ dot1x.captive_portal.enabled }} |
{% endif %}
{% if dot1x.captive_portal.access_list_ipv4 is arista.avd.defined %}
| Access-list IPv4 | {{ dot1x.captive_portal.access_list_ipv4 }} |
Expand All @@ -73,8 +74,8 @@

| Attribute | Value |
| --------- | ----- |
{% if dot1x.supplicant.logging is arista.avd.defined(true) %}
| Logging | True |
{% if dot1x.supplicant.logging is arista.avd.defined %}
| Logging | {{ dot1x.supplicant.logging }} |
{% endif %}
{% if dot1x.supplicant.disconnect_cached_results_timeout is arista.avd.defined %}
| Disconnect cached-results timeout | {{ dot1x.supplicant.disconnect_cached_results_timeout }} seconds |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dot1x dynamic-authorization
or dot1x.supplicant is arista.avd.defined %}
dot1x
{% for profile in dot1x.supplicant.profiles | arista.avd.natural_sort("name") %}
!
supplicant profile {{ profile.name }}
{% if profile.identity is arista.avd.defined %}
identity {{ profile.identity }}
Expand All @@ -37,6 +36,9 @@ dot1x
{% if profile.ssl_profile is arista.avd.defined %}
ssl profile {{ profile.ssl_profile }}
{% endif %}
{% if not loop.last %}
!
{% endif %}
{% endfor %}
{% if dot1x.aaa.unresponsive is arista.avd.defined %}
{% set aaa_config = "aaa unresponsive" %}
Expand Down Expand Up @@ -100,9 +102,6 @@ dot1x
{% if dot1x.supplicant.disconnect_cached_results_timeout is arista.avd.defined %}
supplicant disconnect cached-results timeout {{ dot1x.supplicant.disconnect_cached_results_timeout }} seconds
{% endif %}
{% if dot1x.captive_portal.enabled is arista.avd.defined(true) %}
captive-portal
{% endif %}
{% if dot1x.captive_portal.url is arista.avd.defined or dot1x.captive_portal.ssl_profile is arista.avd.defined %}
{% set captive_portal_cli = "captive-portal" %}
{% if dot1x.captive_portal.url is arista.avd.defined %}
Expand All @@ -112,6 +111,8 @@ dot1x
{% set captive_portal_cli = captive_portal_cli ~ " ssl profile " ~ dot1x.captive_portal.ssl_profile %}
{% endif %}
{{ captive_portal_cli }}
{% elif dot1x.captive_portal.enabled is arista.avd.defined(true) %}
captive-portal
{% endif %}
{% if dot1x.captive_portal.access_list_ipv4 is arista.avd.defined %}
captive-portal access-list ipv4 {{ dot1x.captive_portal.access_list_ipv4 }}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 31239da

Please sign in to comment.