[Bug]: [202405][multi-asic] test_passw_hardening.py
fails with: libyang[0]: Missing required element \"lanes\" in \"PORT_LIST\"
#14583
Labels
Issue Description
When running
test_passw_hardening.py
on a multi-asic system it will try to runsudo config passw-hardening policies expiration 100
in the global netns which fails with the following lines:Here is where that error is emitted:
https://github.com/sonic-net/sonic-utilities/blob/2cb8cc65b6dc57d9613ce271a681743aa4fa0f3c/config/plugins/sonic-passwh_yang.py#L35
I think the problem is it's expecting ports in that namespace but because all the ports are in the per-asic namespace there won't be any in the global namespace.
If I run this same command in the asic namespace it passes:
And I can see it update the
config_db
in the asic namespace:Results you see
Listed above
Results you expected to see
The question I'm unsure of is if we can just change this test to run all the commands in the asic namespace or the yang model needs to be fixed to allow this command to run in the global namespace.
Is it platform specific
generic
Relevant log output
No response
Output of
show version
No response
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: