TWSD-824 - Unable to update the port details for vAPV in "Advanced Platform Resources" in AVX

Review Request #926 — Created June 18, 2025 and submitted — Latest diff uploaded

shuinvy
AVX2
rel_avx_2_7_4
TWSD-824
jasonchang, timlai, timsu

Fix old value is empty

The API flow is router call update function if API ends with _update (such as: /api/avx/va/instance/VAInstance/_update)
then the update function will get old values first.
From tracking the code, I found if the type(class) of the field is under the FieldGroup, then the original function will get None for the field.
Solution:
If val is null, I use manager to get the value instead (function get_field_by_instance of the manager).


    Loading...