avd icon indicating copy to clipboard operation
avd copied to clipboard

Feat(eos_cli_config_gen): Add support for dot1x captive portal and supplicant commands

Open Shivani-gslab opened this issue 9 months ago • 2 comments

Change Summary

Add support for dot1x captive portal and supplicant logging.

Related Issue(s)

Fixes #4006

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Expanding dot1x data-model with captive_portal and supplicant-

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

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

       # SSL profile name.
       ssl_profile: <str>

       # Standard access-list name.
       access_list_ipv4: <str>
     supplicant:

       # Dot1x supplicant profiles.
       profiles:
         - name: <str; required; unique>

           # Extensible Authentication Protocol method:
           #   - EAP Flexible Authentication via Secure Tunneling.
           #   - EAP with Transport Layer Security.
           eap_method: <str; "fast" | "tls">

           # User identity.
           identity: <str>
           passphrase_type: <str; "0" | "7" | "8a"; default="7">

           # Extensible Authentication Protocol password.
           passphrase: <str>

           # SSL profile name.
           ssl_profile: <str>

       # Enable supplicant logging.
       logging: <bool>

       # Timeout period in seconds.
       disconnect_cached_results_timeout: <int; 60-65535>

How to test

Molecule test in this PR and test in EOS CLI.

Checklist

PR Checklist

  • [x] Check the command ordering on EOS.

Repository Checklist

  • [x] My code has been rebased from devel before I start
  • [x] I have read the CONTRIBUTING document.
  • [x] My change requires a change to the documentation and documentation have been updated accordingly.
  • [x] I have updated molecule CI testing accordingly. (check the box if not applicable)

Shivani-gslab avatar May 21 '24 12:05 Shivani-gslab