File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1934,6 +1934,13 @@ void sai_deserialize_enum(
1934
1934
}
1935
1935
}
1936
1936
1937
+ // for backward compatibility from SAI v1.6
1938
+ if (s == " SAI_NEXT_HOP_GROUP_TYPE_ECMP" )
1939
+ {
1940
+ value = SAI_NEXT_HOP_GROUP_TYPE_ECMP;
1941
+ return ;
1942
+ }
1943
+
1937
1944
SWSS_LOG_WARN (" enum %s not found in enum %s" , s.c_str (), meta->name );
1938
1945
1939
1946
sai_deserialize_number (s, value);
@@ -2090,7 +2097,16 @@ void sai_deserialize_qos_map_params(
2090
2097
params.prio = j[" prio" ];
2091
2098
params.pg = j[" pg" ];
2092
2099
params.queue_index = j[" qidx" ];
2093
- params.mpls_exp = j[" mpls_exp" ];
2100
+
2101
+ if (j.find (" mpls_exp" ) == j.end ())
2102
+ {
2103
+ // for backward compatibility
2104
+ params.mpls_exp = 0 ;
2105
+ }
2106
+ else
2107
+ {
2108
+ params.mpls_exp = j[" mpls_exp" ];
2109
+ }
2094
2110
2095
2111
sai_deserialize_packet_color (j[" color" ], params.color );
2096
2112
}
You can’t perform that action at this time.
0 commit comments