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

[DHCPv6] [202012] Update the dhcpv6_relay config/show cli #2271

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

vivekrnv
Copy link
Contributor

@vivekrnv vivekrnv commented Jul 19, 2022

Signed-off-by: vkarri vkarri@nvidia.com

What I did

Fixes sonic-net/sonic-buildimage#11455

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

root@r-lionfish-16:/home/admin# config vlan add 10
root@r-lionfish-16:/home/admin# config vlan member add 10 Ethernet0

root@r-lionfish-16:/home/admin# config vlan dhcp_relay add 10 192.168.1.1
Added DHCP relay destination address 192.168.1.1 to Vlan10
Restarting DHCP relay service...

root@r-lionfish-16:/home/admin# config vlan dhcp_relay add 10 fc02:2000::1
Added DHCP relay destination address fc02:2000::1 to Vlan10
Restarting DHCP relay service...

root@r-lionfish-16:/home/admin# config vlan dhcp_relay add 10 2000:1::2
Added DHCP relay destination address 2000:1::2 to Vlan10
Restarting DHCP relay service...

root@r-lionfish-16:/home/admin# show vlan brief
+-----------+--------------+-----------+----------------+-----------------------+-------------+
|   VLAN ID | IP Address   | Ports     | Port Tagging   | DHCP Helper Address   | Proxy ARP   |
+===========+==============+===========+================+=======================+=============+
|        10 |              | Ethernet0 | tagged         | 192.168.1.1           | disabled    |
|           |              |           |                | 2000:1::2             |             |
|           |              |           |                | fc02:2000::1          |             |
+-----------+--------------+-----------+----------------+-----------------------+-------------+


root@r-lionfish-16:/home/admin# config vlan dhcp_relay del 10 fc02:2000::1
Removed DHCP relay destination address fc02:2000::1 from Vlan10
Restarting DHCP relay service...


[group:dhcp-relay]
programs=isc-dhcpv4-relay-Vlan10,dhcp6relay

[program:isc-dhcpv4-relay-Vlan10]
command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan10 192.168.1.2
priority=3
autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited

[program:dhcp6relay]
command=/usr/sbin/dhcp6relay

priority=3
autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited

Signed-off-by: vkarri <vkarri@contoso.com>
@liat-grozovik
Copy link
Collaborator

@yxieca could you please help to review or assign someone?

@dgsudharsan
Copy link
Collaborator

@kellyyeh Can you please review and sign off?

@liat-grozovik liat-grozovik merged commit 17284d0 into sonic-net:202012 Jul 21, 2022
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Jul 21, 2022
Update sonic-utilities submodule pointer to include the following:
* Fix test for pfcwd_sw_enable in db_migrator_test ([sonic-net#2252](sonic-net/sonic-utilities#2252))
* [DHCPv6] [202012] Update the dhcpv6_relay config/show cli ([sonic-net#2271](sonic-net/sonic-utilities#2271))
* [vnet_route_check] Align DB data parse logic with format used by swsscommon API ([sonic-net#2268](sonic-net/sonic-utilities#2268))
* [202012] [generate_dump] allow to extend dump with plugin scripts ([sonic-net#2269](sonic-net/sonic-utilities#2269))

Signed-off-by: dprital <drorp@nvidia.com>
yxieca pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jul 29, 2022
Update sonic-utilities submodule pointer to include the following:
* Fix test for pfcwd_sw_enable in db_migrator_test ([#2252](sonic-net/sonic-utilities#2252))
* [DHCPv6] [202012] Update the dhcpv6_relay config/show cli ([#2271](sonic-net/sonic-utilities#2271))
* [vnet_route_check] Align DB data parse logic with format used by swsscommon API ([#2268](sonic-net/sonic-utilities#2268))
* [202012] [generate_dump] allow to extend dump with plugin scripts ([#2269](sonic-net/sonic-utilities#2269))

Signed-off-by: dprital <drorp@nvidia.com>
kellyyeh added a commit that referenced this pull request Aug 18, 2022
@kellyyeh
Copy link
Contributor

@vivekrnv Reverting this change. #2321
ipv6 helper are not expected in vlan table, they're shown in a separate dhcp_relay_table

@vivekrnv
Copy link
Contributor Author

vivekrnv commented Aug 19, 2022

@vivekrnv Reverting this change. #2321 ipv6 helper are not expected in vlan table, they're shown in a separate dhcp_relay_table

I think the latest labels show the ipv6 helper address in the vlan_table itself, am i wrong?

@kellyyeh
Copy link
Contributor

ipv6 addresses added to vlan_table does not get read by dhcp6relay

@vivekrnv
Copy link
Contributor Author

ipv6 addresses added to vlan_table does not get read by dhcp6relay

Yes, we need the separate dhcp_relay table for dhcp6relay program. But at the same time, we need the data to be in VLAN table for the supervisord to recognize and launch the programs crct? https://github.com/sonic-net/sonic-buildimage/blob/202012/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2#L51.

Only in master, we've completely moved away from VLAN table. The other labels need the data in DHCP_RELAY and VLAN tables for the dhcpv6 to work.
https://github.com/sonic-net/sonic-buildimage/blob/master/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2#L51

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.

4 participants