Skip to content

[snappi] Fixed typo in variable hostname in variables.override.yml file to resolve key-error#22570

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
amitpawar12:snappi-issue-22360-master
Feb 25, 2026
Merged

[snappi] Fixed typo in variable hostname in variables.override.yml file to resolve key-error#22570
yejianquan merged 1 commit intosonic-net:masterfrom
amitpawar12:snappi-issue-22360-master

Conversation

@amitpawar12
Copy link
Copy Markdown
Contributor

Description of PR

The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)

Summary:
Fixes #22360

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

Fixed a minor typo error.

How did you do it?

Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?

Ran it on local branch with fixed parameter.

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang moved this to To be Merged in SONiC Snappi Feb 24, 2026
@yejianquan yejianquan merged commit 2cb3f13 into sonic-net:master Feb 25, 2026
14 checks passed
@github-project-automation github-project-automation bot moved this from To be Merged to Done in SONiC Snappi Feb 25, 2026
aronovic pushed a commit to aronovic/sonic-mgmt that referenced this pull request Mar 3, 2026
…onic-net#22570)

Description of PR
The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)
Summary:
Fixes sonic-net#22360

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fixed a minor typo error.

How did you do it?
Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?
Ran it on local branch with fixed parameter.

Signed-off-by: amitpawa <[email protected]>
Signed-off-by: Mihut Aronovici <[email protected]>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Mar 3, 2026
…onic-net#22570)

Description of PR
The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)
Summary:
Fixes sonic-net#22360

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fixed a minor typo error.

How did you do it?
Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?
Ran it on local branch with fixed parameter.

Signed-off-by: amitpawa <[email protected]>
Signed-off-by: Raghavendran Ramanathan <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…utomatically (sonic-net#22570)

#### Why I did it
src/sonic-host-services
```
* 9082af7 - (HEAD -> 202405, origin/202405) [kdump-config] update kdump default config with pre-defined value in /proc/cmdline (installer.conf) (cherry-pick from master to 202405) (sonic-net#236) (4 days ago) [Marty Y. Lok]
```
#### How I did it
#### How to verify it
#### Description for the changelog
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
…onic-net#22570)

Description of PR
The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)
Summary:
Fixes sonic-net#22360

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fixed a minor typo error.

How did you do it?
Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?
Ran it on local branch with fixed parameter.

Signed-off-by: amitpawa <[email protected]>
Signed-off-by: Abhishek <[email protected]>
vrajeshe pushed a commit to vrajeshe/sonic-mgmt that referenced this pull request Mar 23, 2026
…onic-net#22570)

Description of PR
The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)
Summary:
Fixes sonic-net#22360

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fixed a minor typo error.

How did you do it?
Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?
Ran it on local branch with fixed parameter.

Signed-off-by: amitpawa <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
ravaliyel pushed a commit to ravaliyel/sonic-mgmt that referenced this pull request Mar 27, 2026
…onic-net#22570)

Description of PR
The parameter "hostname" in variables.override.yml is defined as "host_name". This causes key-error in function get_snappi_ports_for_rdma present in snappi_fixtures.py in the following code:

    for port in snappi_port_list:
        for var_rx_port in var_rx_ports:
            if port['peer_port'] == var_rx_port['port_name'] and port['peer_device'] == var_rx_port['hostname']:
                rx_snappi_ports.append(port)
        for var_tx_port in var_tx_ports:
            if port['peer_port'] == var_tx_port['port_name'] and port['peer_device'] == var_tx_port['hostname']:
                tx_snappi_ports.append(port)
Summary:
Fixes sonic-net#22360

Type of change
 Bug fix
 Testbed and Framework(new/improvement)
 New Test case
 Skipped for non-supported platforms
 Test case improvement

Approach
What is the motivation for this PR?
Fixed a minor typo error.

How did you do it?
Fixed a minor typo error. Corrected the variable 'host_name" to "hostname" in the yml file.

How did you verify/test it?
Ran it on local branch with fixed parameter.

Signed-off-by: amitpawa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Snappi][Bug] Typo on variable.override.yml file causes key-error in get_snappi_ports_for_rdma function

4 participants