Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summary:New smartswitch DPU config template #16201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nnelluri-cisco
Copy link

Description of PR

New smartswitch DPU config template.

Summary: smartswitch DPU config
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

configure the DPU's for the smartswicth.

How did you do it?

Added New dpu_config.j2 to generate DPU config for the smartswicth.

How did you verify/test it?

Verified using below command
./testbed-cli.sh deploy-mg cmono_t1 ./lab ./password.txt

Wednesday 20 November 2024  02:22:32 +0000 (0:00:00.374)       0:03:09.175 **** 
=============================================================================== 
execute cli "config load_minigraph --override_config -y" to apply new minigraph ------------------------------------------------------------------------------------------------------------- 79.14s
Sync DUT system time with NTP server -------------------------------------------------------------------------------------------------------------------------------------------------------- 61.89s
Wait for switch to become reachable again --------------------------------------------------------------------------------------------------------------------------------------------------- 10.28s
Configure TACACS with PTF TACACS server ------------------------------------------------------------------------------------------------------------------------------------------------------ 5.64s
Configure TACACS ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.57s
Start ntp.service on DUT --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.07s
execute cli "config save -y" to save current minigraph as startup-config --------------------------------------------------------------------------------------------------------------------- 2.47s
execute cli "config bgp startup all" to bring up all bgp sessions for test ------------------------------------------------------------------------------------------------------------------- 1.94s
Wait for ntp.service restart after reload minigraph ------------------------------------------------------------------------------------------------------------------------------------------ 1.61s
Set the RTC from the system time ------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.20s
create new minigraph file for SONiC device --------------------------------------------------------------------------------------------------------------------------------------------------- 1.08s
Stop ntp.service on DUT ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.06s
find interface name mapping and individual interface speed if defined from dut --------------------------------------------------------------------------------------------------------------- 1.05s
Generate server cert using openssl. ---------------------------------------------------------------------------------------------------------------------------------------------------------- 0.96s
active dpu config ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.76s
Generate dsmsroot cert using openssl. -------------------------------------------------------------------------------------------------------------------------------------------------------- 0.66s
create dpu config file for SONiC device ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.56s
Generate server cert using openssl. ---------------------------------------------------------------------------------------------------------------------------------------------------------- 0.52s
gather testbed VM information ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.45s
Generate golden_config_db.json --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.40s
Done

Any platform specific information?

hwsku: Cisco-8102-28FH-DPU-O-T1

Supported testbed topology if it's a new test case?

smartswicth

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

CLA Not Signed

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nnelluri-cisco
Copy link
Author

@prabhataravind
Please review.

@@ -702,6 +702,16 @@
shell: bash "/etc/sonic/apply_clet.sh"
when: stat_result.stat.exists is defined and stat_result.stat.exists

- block:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nnelluri-cisco , can we move the logic to golden config? This is more like our PROD wokflow: #16033
One thing to remind is that the golden config override will replace table fully. So we need to create table with full entry.

We also have YANG validation for golden config override which is preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants