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

[SmartSwitch][DHCPServer] show dhcp_server ipv4 lease does not show the port name for smartswitch #20155

Closed
gpunathilell opened this issue Sep 5, 2024 · 2 comments
Assignees
Labels
MSFT Triaged this issue has been triaged

Comments

@gpunathilell
Copy link
Contributor

Description

The show command for the dhcp_server does not work as expected for smartswitch platform. This is because the Port is obtained for the show command from the FDB entry in STATE_DB for the corresponding dhcp_interface, but for smartswitch the the DPUs are provided with link local addresses by the switch, and hence the port information is not present in the FDB table, due to this the port is shown as unknown in the output of the show dhcp_server ipv4 lease command. The code is present here

Steps to reproduce the issue:

  1. On smartswitch platform execute the show dhcp_server ipv4 lease command

Describe the results you received:

admin@sonic:/tmp$ show dhcp_server ipv4 lease
+---------------------------+-------------------+---------------+---------------------+---------------------+
| Interface                 | MAC Address       | IP            | Lease Start         | Lease End           |
+===========================+===================+===============+=====================+=====================+
| bridge-midplane|<Unknown> | b0:cf:b0:0e:3b:f3 | 169.254.200.2 | 2024-06-14 11:14:42 | 2024-06-14 11:29:42 |

Describe the results you expected:

admin@sonic:/tmp$ show dhcp_server ipv4 lease
+---------------------------+-------------------+---------------+---------------------+---------------------+
| Interface                 | MAC Address       | IP            | Lease Start         | Lease End           |
+===========================+===================+===============+=====================+=====================+
| bridge-midplane|port_name | b0:cf:b0:0e:3b:f3 | 169.254.200.2 | 2024-06-14 11:14:42 | 2024-06-14 11:29:42 |

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

The ip -n command could be used to obtain the neighbor information and this can be used to obtain the port name

@zhangyanzhao zhangyanzhao added MSFT Triaged this issue has been triaged labels Sep 11, 2024
@Blueve
Copy link
Contributor

Blueve commented Oct 18, 2024

@yaqiangz please help check why port name shown as Unknown

@yaqiangz
Copy link
Contributor

@yaqiangz please help check why port name shown as Unknown

Acked

yxieca pushed a commit that referenced this issue Nov 1, 2024
… switch by Cli (#20642)

Why I did it
In smart switch, there is an issue that Cli query dhcp lease got unknow interface due to dpu fdb hasn't present in STATE_DB FDB_TABLE. Issue: #20155

How I did it
Query bridge fdb if there is no fdb record in STATE_DB

How to verify it
UT passed
yaqiangz added a commit to yaqiangz/sonic-buildimage that referenced this issue Nov 4, 2024
… switch by Cli (sonic-net#20642)

Why I did it
In smart switch, there is an issue that Cli query dhcp lease got unknow interface due to dpu fdb hasn't present in STATE_DB FDB_TABLE. Issue: sonic-net#20155

How I did it
Query bridge fdb if there is no fdb record in STATE_DB

How to verify it
UT passed
bingwang-ms pushed a commit that referenced this issue Nov 6, 2024
… switch by Cli (#20642) (#20682)

Why I did it
In smart switch, there is an issue that Cli query dhcp lease got unknow interface due to dpu fdb hasn't present in STATE_DB FDB_TABLE. Issue: #20155

How I did it
Query bridge fdb if there is no fdb record in STATE_DB

How to verify it
UT passed
rkavitha-hcl pushed a commit to rkavitha-hcl/sonic-buildimage that referenced this issue Nov 15, 2024
… switch by Cli (sonic-net#20642)

Why I did it
In smart switch, there is an issue that Cli query dhcp lease got unknow interface due to dpu fdb hasn't present in STATE_DB FDB_TABLE. Issue: sonic-net#20155

How I did it
Query bridge fdb if there is no fdb record in STATE_DB

How to verify it
UT passed
aidan-gallagher pushed a commit to aidan-gallagher/sonic-buildimage that referenced this issue Nov 16, 2024
… switch by Cli (sonic-net#20642)

Why I did it
In smart switch, there is an issue that Cli query dhcp lease got unknow interface due to dpu fdb hasn't present in STATE_DB FDB_TABLE. Issue: sonic-net#20155

How I did it
Query bridge fdb if there is no fdb record in STATE_DB

How to verify it
UT passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MSFT Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants