Open Hedgehog-Guru opened 1 year ago
@jcaiMR, @yxieca FYI
dhcp6relay must be aligned with yang about the field name https://github.com/sonic-net/sonic-dhcp-relay/blob/6a6ce245125d600ad07fc02638e96ba6c18d1b4b/src/config_interface.cpp#L144
@Hedgehog-Guru Please try adding dhcpv6 options in config db as follows:
"DHCP_RELAY": {
"Vlan1000": {
"dhcpv6_servers": [
"fc02:2000::1",
"fc02:2000::2",
"fc02:2000::3",
"fc02:2000::4"
],
"dhcpv6_option|rfc6939_support": "false"
}
},
You can also check in syslog to ensure options are disabled: Aug 24 00:46:45.074091 str2-7060cx-32s-29 INFO dhcp_relay#dhcp6relay: add Vlan1000 relay config, option79 disable interface-id disable
@kellyyeh, yang model must be updated if this is the expected configuration. https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-dhcpv6-relay.yang
@kellyyeh Can you please fix the yang model?
@kellyyeh @jcaiMR can you please help? Thanks.
Ack'ed, ETA 8/25
@kellyyeh Any update?
Draft PR: https://github.com/sonic-net/sonic-buildimage/pull/16290 PR is currently failing because our test parsing does not support container under list https://github.com/sonic-net/sonic-buildimage/blob/e286869b24992a6ee17a31a76bbd54bf186fc383/src/sonic-yang-mgmt/sonic_yang_ext.py#L649C9-L649C24 It should be supported according to rfc.
Need to address this issue first
Why can't we just change the code to use rfc6939_support
& interface_id
and keep the Yang as is?
@kellyyeh @jcaiMR @yxieca Can you please update the status on this bug?
@dgsudharsan This issue is dependent on this YANG model fix: https://github.com/sonic-net/sonic-buildimage/issues/16704
Why can't we just change the code to use
rfc6939_support
&interface_id
and keep the Yang as is?
@kellyyeh Why can't we do this instead of updating yang?
@yxieca @yaqiangz Now that the list is added to Yang model, Can we fix this issue?
Description
If we disable/enable Option 79 and interface_id in config_db for ipv6 dhcp_relay, there is no difference in captured dhcp-relay packets on server side
Steps to reproduce the issue:
config int ip add Ethernet0 2000:100::1/64
Describe the results you received:
There is no difference in captured dhcp-relay packets with different option settings
Describe the results you expected:
We should see/not see Option 79 and interface_id in captured dhcp_relay packets according to option setting in config_db
Output of
show version
:Output of
show techsupport
:sonic_dump_qa-eth-vt03-4-3700v_20230823_102550.tar.gz
Additional information you deem important (e.g. issue happens only occasionally):
packet captures.zip