File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4061,6 +4061,8 @@ typedef struct _sai_switch_api_t
4061
4061
sai_get_switch_tunnel_attribute_fn get_switch_tunnel_attribute ;
4062
4062
sai_switch_mdio_cl22_read_fn switch_mdio_cl22_read ;
4063
4063
sai_switch_mdio_cl22_write_fn switch_mdio_cl22_write ;
4064
+ sai_bulk_object_set_attribute_fn set_switches_attribute ;
4065
+ sai_bulk_object_get_attribute_fn get_switches_attribute
4064
4066
4065
4067
} sai_switch_api_t ;
4066
4068
Original file line number Diff line number Diff line change @@ -4452,6 +4452,13 @@ sub ExtractObjectTypeBulkMap
4452
4452
4453
4453
my $OT = " SAI_OBJECT_TYPE_" . uc ($ot );
4454
4454
4455
+ # Object type is extracted from name like "routes" -> "route", and then
4456
+ # from "switches" -> "switche" which fails due to invalid type.
4457
+ # Map "switche" to "switch" to avoid this error.
4458
+ if ($OT eq " SAI_OBJECT_TYPE_SWITCHE" ) {
4459
+ $OT = " SAI_OBJECT_TYPE_SWITCH" ;
4460
+ }
4461
+
4455
4462
if (not defined $OBJECT_TYPE_MAP {$OT })
4456
4463
{
4457
4464
LogError " invalid object type $OT extracted from bulk definition: $fn " ;
Original file line number Diff line number Diff line change @@ -459,7 +459,9 @@ sub CheckFunctionNaming
459
459
switch_mdio_cl22_read
460
460
switch_mdio_cl22_write
461
461
switch_register_read
462
- switch_register_write);
462
+ switch_register_write
463
+ set_switches_attribute
464
+ get_switches_attribute);
463
465
464
466
my $REG = "(" . (join"|",@listex ) . ")";
465
467
You can’t perform that action at this time.
0 commit comments