Chassis rows created by ovn-controller-vtep never advertise any feature in other_config and must not disable features for the local chassis.
Signed-off-by: Alexandra Rukomoinikova <[email protected]> --- tests/ovn-northd.at | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at index af231fb87..b440b0f76 100644 --- a/tests/ovn-northd.at +++ b/tests/ovn-northd.at @@ -11505,6 +11505,36 @@ OVN_CLEANUP_NORTHD AT_CLEANUP ]) +OVN_FOR_EACH_NORTHD_NO_HV([ +AT_SETUP([Chassis-feature compatibitility - VTEP chassis]) +ovn_start + +AS_BOX([Local chassis]) +check ovn-sbctl chassis-add hv1 geneve 127.0.0.1 \ + -- set chassis hv1 other_config:ct-state-save=true + +check ovn-nbctl --wait=sb sync + +AT_CHECK([as northd ovn-appctl -t ovn-northd debug/chassis-features-list | grep "ct_state_save"], [0], [dnl +ct_state_save: true +]) + +AS_BOX([VTEP chassis]) +dnl ovn-controller-vtep never advertises any feature in other_config, +dnl so a VTEP chassis must not disable features for the local chassis. +check ovn-sbctl chassis-add vtep1 vxlan 127.0.0.2 \ + -- set chassis vtep1 other_config:is-vtep=true + +check ovn-nbctl --wait=sb sync + +AT_CHECK([as northd ovn-appctl -t ovn-northd debug/chassis-features-list | grep "ct_state_save"], [0], [dnl +ct_state_save: true +]) + +OVN_CLEANUP_NORTHD +AT_CLEANUP +]) + OVN_FOR_EACH_NORTHD_NO_HV([ AT_SETUP([check OVN QoS]) AT_KEYWORDS([OVN-QoS]) -- 2.48.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
