sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
194 stars 713 forks source link

[dhcp_server_test] Fix log errors caused by dhcp server tests #13576

Closed w1nda closed 2 months ago

w1nda commented 3 months ago

Description of PR

Summary: Fixes # (issue) When updating config db, there are some invalid references modeled by yang model.

For example: ERR sonic_yang: Data Loading Failed:Leafref "/sonic-dhcp-server-ipv4:sonic-dhcp-server-ipv4/sonic-dhcp-server-ipv4:DHCP_SERVER_IPV4_RANGE/sonic-dhcp-server-ipv4:DHCP_SERVER_IPV4_RANGE_LIST/sonic-dhcp-server-ipv4:name" of value "range_192.168.0.91" points to a non-existing leaf.

Type of change

Back port request

Approach

What is the motivation for this PR?

When updating config db, there are some invalid references modeled by yang model.

we can adjust the order of applying patches to avoid invalid status.

How did you do it?

Adjust the order of config patches

How did you verify/test it?

Run tests

Any platform specific information?

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

Documentation

wsycqyz commented 2 months ago

Re-trigger PR test.

mssonicbld commented 2 months ago

Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-mgmt/pull/13621

mssonicbld commented 2 months ago

Cherry-pick PR to 202311: https://github.com/sonic-net/sonic-mgmt/pull/13631