diff --git a/syncd/syncd_init.cpp b/syncd/syncd_init.cpp index afe977fff5..7ed1a3b0ce 100644 --- a/syncd/syncd_init.cpp +++ b/syncd/syncd_init.cpp @@ -37,28 +37,28 @@ void initialize_common_api_pointers() common_create[SAI_OBJECT_TYPE_NULL] = NULL; common_create[SAI_OBJECT_TYPE_PORT] = NULL; - common_create[SAI_OBJECT_TYPE_LAG] = sai_lag_api->create_lag; - common_create[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = sai_router_api->create_virtual_router; - common_create[SAI_OBJECT_TYPE_NEXT_HOP] = sai_next_hop_api->create_next_hop; - common_create[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = sai_next_hop_group_api->create_next_hop_group; - common_create[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = sai_router_interface_api->create_router_interface; - common_create[SAI_OBJECT_TYPE_ACL_TABLE] = sai_acl_api->create_acl_table; - common_create[SAI_OBJECT_TYPE_ACL_ENTRY] = sai_acl_api->create_acl_entry; - common_create[SAI_OBJECT_TYPE_ACL_COUNTER] = sai_acl_api->create_acl_counter; - common_create[SAI_OBJECT_TYPE_HOST_INTERFACE] = sai_hostif_api->create_hostif; - common_create[SAI_OBJECT_TYPE_TRAP_GROUP] = sai_hostif_api->create_hostif_trap_group; + common_create[SAI_OBJECT_TYPE_LAG] = (sai_lag_api) ? sai_lag_api->create_lag : NULL; + common_create[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = (sai_router_api) ? sai_router_api->create_virtual_router : NULL; + common_create[SAI_OBJECT_TYPE_NEXT_HOP] = (sai_next_hop_api) ? sai_next_hop_api->create_next_hop : NULL; + common_create[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = (sai_next_hop_group_api) ? sai_next_hop_group_api->create_next_hop_group : NULL; + common_create[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = (sai_router_interface_api) ? sai_router_interface_api->create_router_interface : NULL; + common_create[SAI_OBJECT_TYPE_ACL_TABLE] = (sai_acl_api) ? sai_acl_api->create_acl_table : NULL; + common_create[SAI_OBJECT_TYPE_ACL_ENTRY] = (sai_acl_api) ? sai_acl_api->create_acl_entry : NULL; + common_create[SAI_OBJECT_TYPE_ACL_COUNTER] = (sai_acl_api) ? sai_acl_api->create_acl_counter : NULL; + common_create[SAI_OBJECT_TYPE_HOST_INTERFACE] = (sai_hostif_api) ? sai_hostif_api->create_hostif : NULL; + common_create[SAI_OBJECT_TYPE_TRAP_GROUP] = (sai_hostif_api) ? sai_hostif_api->create_hostif_trap_group : NULL; common_create[SAI_OBJECT_TYPE_ACL_TABLE_GROUP] = NULL; - common_create[SAI_OBJECT_TYPE_POLICER] = sai_policer_api->create_policer; - common_create[SAI_OBJECT_TYPE_WRED] = sai_wred_api->create_wred_profile; - common_create[SAI_OBJECT_TYPE_QOS_MAPS] = sai_qos_map_api->create_qos_map; + common_create[SAI_OBJECT_TYPE_POLICER] = (sai_policer_api) ? sai_policer_api->create_policer : NULL; + common_create[SAI_OBJECT_TYPE_WRED] = (sai_wred_api) ? sai_wred_api->create_wred_profile : NULL; + common_create[SAI_OBJECT_TYPE_QOS_MAPS] = (sai_qos_map_api) ? sai_qos_map_api->create_qos_map : NULL; common_create[SAI_OBJECT_TYPE_QUEUE] = NULL; - common_create[SAI_OBJECT_TYPE_SCHEDULER] = sai_scheduler_api->create_scheduler_profile; - common_create[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = sai_scheduler_group_api->create_scheduler_group; - common_create[SAI_OBJECT_TYPE_BUFFER_POOL] = sai_buffer_api->create_buffer_pool; - common_create[SAI_OBJECT_TYPE_BUFFER_PROFILE] = sai_buffer_api->create_buffer_profile; + common_create[SAI_OBJECT_TYPE_SCHEDULER] = (sai_scheduler_api) ? sai_scheduler_api->create_scheduler_profile : NULL; + common_create[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = (sai_scheduler_group_api) ? sai_scheduler_group_api->create_scheduler_group : NULL; + common_create[SAI_OBJECT_TYPE_BUFFER_POOL] = (sai_buffer_api) ? sai_buffer_api->create_buffer_pool : NULL; + common_create[SAI_OBJECT_TYPE_BUFFER_PROFILE] = (sai_buffer_api) ? sai_buffer_api->create_buffer_profile : NULL; common_create[SAI_OBJECT_TYPE_PRIORITY_GROUP] = NULL; - common_create[SAI_OBJECT_TYPE_LAG_MEMBER] = sai_lag_api->create_lag_member; - common_create[SAI_OBJECT_TYPE_VLAN_MEMBER] = sai_vlan_api->create_vlan_member; + common_create[SAI_OBJECT_TYPE_LAG_MEMBER] = (sai_lag_api) ? sai_lag_api->create_lag_member : NULL; + common_create[SAI_OBJECT_TYPE_VLAN_MEMBER] = (sai_vlan_api) ? sai_vlan_api->create_vlan_member : NULL; common_create[SAI_OBJECT_TYPE_FDB] = NULL; common_create[SAI_OBJECT_TYPE_SWITCH] = NULL; common_create[SAI_OBJECT_TYPE_TRAP] = NULL; @@ -69,28 +69,28 @@ void initialize_common_api_pointers() common_remove[SAI_OBJECT_TYPE_NULL] = NULL; common_remove[SAI_OBJECT_TYPE_PORT] = NULL; - common_remove[SAI_OBJECT_TYPE_LAG] = sai_lag_api->remove_lag; - common_remove[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = sai_router_api->remove_virtual_router; - common_remove[SAI_OBJECT_TYPE_NEXT_HOP] = sai_next_hop_api->remove_next_hop; - common_remove[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = sai_next_hop_group_api->remove_next_hop_group; - common_remove[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = sai_router_interface_api->remove_router_interface; - common_remove[SAI_OBJECT_TYPE_ACL_TABLE] = sai_acl_api->delete_acl_table; - common_remove[SAI_OBJECT_TYPE_ACL_ENTRY] = sai_acl_api->delete_acl_entry; - common_remove[SAI_OBJECT_TYPE_ACL_COUNTER] = sai_acl_api->delete_acl_counter; - common_remove[SAI_OBJECT_TYPE_HOST_INTERFACE] = sai_hostif_api->remove_hostif; - common_remove[SAI_OBJECT_TYPE_TRAP_GROUP] = sai_hostif_api->remove_hostif_trap_group; + common_remove[SAI_OBJECT_TYPE_LAG] = (sai_lag_api) ? sai_lag_api->remove_lag : NULL; + common_remove[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = (sai_router_api) ? sai_router_api->remove_virtual_router : NULL; + common_remove[SAI_OBJECT_TYPE_NEXT_HOP] = (sai_next_hop_api) ? sai_next_hop_api->remove_next_hop : NULL; + common_remove[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = (sai_next_hop_group_api) ? sai_next_hop_group_api->remove_next_hop_group : NULL; + common_remove[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = (sai_router_interface_api) ? sai_router_interface_api->remove_router_interface : NULL; + common_remove[SAI_OBJECT_TYPE_ACL_TABLE] = (sai_acl_api) ? sai_acl_api->delete_acl_table : NULL; + common_remove[SAI_OBJECT_TYPE_ACL_ENTRY] = (sai_acl_api) ? sai_acl_api->delete_acl_entry : NULL; + common_remove[SAI_OBJECT_TYPE_ACL_COUNTER] = (sai_acl_api) ? sai_acl_api->delete_acl_counter : NULL; + common_remove[SAI_OBJECT_TYPE_HOST_INTERFACE] = (sai_hostif_api) ? sai_hostif_api->remove_hostif : NULL; + common_remove[SAI_OBJECT_TYPE_TRAP_GROUP] = (sai_hostif_api) ? sai_hostif_api->remove_hostif_trap_group : NULL; common_remove[SAI_OBJECT_TYPE_ACL_TABLE_GROUP] = NULL; - common_remove[SAI_OBJECT_TYPE_POLICER] = sai_policer_api->remove_policer; - common_remove[SAI_OBJECT_TYPE_WRED] = sai_wred_api->remove_wred_profile; - common_remove[SAI_OBJECT_TYPE_QOS_MAPS] = sai_qos_map_api->remove_qos_map; + common_remove[SAI_OBJECT_TYPE_POLICER] = (sai_policer_api) ? sai_policer_api->remove_policer : NULL; + common_remove[SAI_OBJECT_TYPE_WRED] = (sai_wred_api) ? sai_wred_api->remove_wred_profile : NULL; + common_remove[SAI_OBJECT_TYPE_QOS_MAPS] = (sai_qos_map_api) ? sai_qos_map_api->remove_qos_map : NULL; common_remove[SAI_OBJECT_TYPE_QUEUE] = NULL; - common_remove[SAI_OBJECT_TYPE_SCHEDULER] = sai_scheduler_api->remove_scheduler_profile; - common_remove[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = sai_scheduler_group_api->remove_scheduler_group; - common_remove[SAI_OBJECT_TYPE_BUFFER_POOL] = sai_buffer_api->remove_buffer_pool; - common_remove[SAI_OBJECT_TYPE_BUFFER_PROFILE] = sai_buffer_api->remove_buffer_profile; + common_remove[SAI_OBJECT_TYPE_SCHEDULER] = (sai_scheduler_api) ? sai_scheduler_api->remove_scheduler_profile : NULL; + common_remove[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = (sai_scheduler_group_api) ? sai_scheduler_group_api->remove_scheduler_group : NULL; + common_remove[SAI_OBJECT_TYPE_BUFFER_POOL] = (sai_buffer_api) ? sai_buffer_api->remove_buffer_pool : NULL; + common_remove[SAI_OBJECT_TYPE_BUFFER_PROFILE] = (sai_buffer_api) ? sai_buffer_api->remove_buffer_profile : NULL; common_remove[SAI_OBJECT_TYPE_PRIORITY_GROUP] = NULL; - common_remove[SAI_OBJECT_TYPE_LAG_MEMBER] = sai_lag_api->remove_lag_member; - common_remove[SAI_OBJECT_TYPE_VLAN_MEMBER] = sai_vlan_api->remove_vlan_member; + common_remove[SAI_OBJECT_TYPE_LAG_MEMBER] = (sai_lag_api) ? sai_lag_api->remove_lag_member : NULL; + common_remove[SAI_OBJECT_TYPE_VLAN_MEMBER] = (sai_vlan_api) ? sai_vlan_api->remove_vlan_member : NULL; common_remove[SAI_OBJECT_TYPE_FDB] = NULL; common_remove[SAI_OBJECT_TYPE_SWITCH] = NULL; common_remove[SAI_OBJECT_TYPE_TRAP] = NULL; @@ -100,29 +100,29 @@ void initialize_common_api_pointers() common_remove[SAI_OBJECT_TYPE_VLAN] = NULL; common_set_attribute[SAI_OBJECT_TYPE_NULL] = NULL; - common_set_attribute[SAI_OBJECT_TYPE_PORT] = sai_port_api->set_port_attribute; - common_set_attribute[SAI_OBJECT_TYPE_LAG] = sai_lag_api->set_lag_attribute; - common_set_attribute[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = sai_router_api->set_virtual_router_attribute; - common_set_attribute[SAI_OBJECT_TYPE_NEXT_HOP] = sai_next_hop_api->set_next_hop_attribute; - common_set_attribute[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = sai_next_hop_group_api->set_next_hop_group_attribute; - common_set_attribute[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = sai_router_interface_api->set_router_interface_attribute; - common_set_attribute[SAI_OBJECT_TYPE_ACL_TABLE] = sai_acl_api->set_acl_table_attribute; - common_set_attribute[SAI_OBJECT_TYPE_ACL_ENTRY] = sai_acl_api->set_acl_entry_attribute; - common_set_attribute[SAI_OBJECT_TYPE_ACL_COUNTER] = sai_acl_api->set_acl_counter_attribute; - common_set_attribute[SAI_OBJECT_TYPE_HOST_INTERFACE] = sai_hostif_api->set_hostif_attribute; - common_set_attribute[SAI_OBJECT_TYPE_TRAP_GROUP] = sai_hostif_api->set_trap_group_attribute; + common_set_attribute[SAI_OBJECT_TYPE_PORT] = (sai_port_api) ? sai_port_api->set_port_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_LAG] = (sai_lag_api) ? sai_lag_api->set_lag_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = (sai_router_api) ? sai_router_api->set_virtual_router_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_NEXT_HOP] = (sai_next_hop_api) ? sai_next_hop_api->set_next_hop_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = (sai_next_hop_group_api) ? sai_next_hop_group_api->set_next_hop_group_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = (sai_router_interface_api) ? sai_router_interface_api->set_router_interface_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_ACL_TABLE] = (sai_acl_api) ? sai_acl_api->set_acl_table_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_ACL_ENTRY] = (sai_acl_api) ? sai_acl_api->set_acl_entry_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_ACL_COUNTER] = (sai_acl_api) ? sai_acl_api->set_acl_counter_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_HOST_INTERFACE] = (sai_hostif_api) ? sai_hostif_api->set_hostif_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_TRAP_GROUP] = (sai_hostif_api) ? sai_hostif_api->set_trap_group_attribute : NULL; common_set_attribute[SAI_OBJECT_TYPE_ACL_TABLE_GROUP] = NULL; - common_set_attribute[SAI_OBJECT_TYPE_POLICER] = sai_policer_api->set_policer_attribute; - common_set_attribute[SAI_OBJECT_TYPE_WRED] = sai_wred_api->set_wred_attribute; - common_set_attribute[SAI_OBJECT_TYPE_QOS_MAPS] = sai_qos_map_api->set_qos_map_attribute; - common_set_attribute[SAI_OBJECT_TYPE_QUEUE] = sai_queue_api->set_queue_attribute; - common_set_attribute[SAI_OBJECT_TYPE_SCHEDULER] = sai_scheduler_api->set_scheduler_attribute; - common_set_attribute[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = sai_scheduler_group_api->set_scheduler_group_attribute; - common_set_attribute[SAI_OBJECT_TYPE_BUFFER_POOL] = sai_buffer_api->set_buffer_pool_attr; - common_set_attribute[SAI_OBJECT_TYPE_BUFFER_PROFILE] = sai_buffer_api->set_buffer_profile_attr; - common_set_attribute[SAI_OBJECT_TYPE_PRIORITY_GROUP] = sai_buffer_api->set_ingress_priority_group_attr; - common_set_attribute[SAI_OBJECT_TYPE_LAG_MEMBER] = sai_lag_api->set_lag_member_attribute; - common_set_attribute[SAI_OBJECT_TYPE_VLAN_MEMBER] = sai_vlan_api->set_vlan_member_attribute; + common_set_attribute[SAI_OBJECT_TYPE_POLICER] = (sai_policer_api) ? sai_policer_api->set_policer_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_WRED] = (sai_wred_api) ? sai_wred_api->set_wred_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_QOS_MAPS] = (sai_qos_map_api) ? sai_qos_map_api->set_qos_map_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_QUEUE] = (sai_queue_api) ? sai_queue_api->set_queue_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_SCHEDULER] = (sai_scheduler_api) ? sai_scheduler_api->set_scheduler_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = (sai_scheduler_group_api) ? sai_scheduler_group_api->set_scheduler_group_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_BUFFER_POOL] = (sai_buffer_api) ? sai_buffer_api->set_buffer_pool_attr : NULL; + common_set_attribute[SAI_OBJECT_TYPE_BUFFER_PROFILE] = (sai_buffer_api) ? sai_buffer_api->set_buffer_profile_attr : NULL; + common_set_attribute[SAI_OBJECT_TYPE_PRIORITY_GROUP] = (sai_buffer_api) ? sai_buffer_api->set_ingress_priority_group_attr : NULL; + common_set_attribute[SAI_OBJECT_TYPE_LAG_MEMBER] = (sai_lag_api) ? sai_lag_api->set_lag_member_attribute : NULL; + common_set_attribute[SAI_OBJECT_TYPE_VLAN_MEMBER] = (sai_vlan_api) ? sai_vlan_api->set_vlan_member_attribute : NULL; common_set_attribute[SAI_OBJECT_TYPE_FDB] = NULL; common_set_attribute[SAI_OBJECT_TYPE_SWITCH] = NULL; common_set_attribute[SAI_OBJECT_TYPE_TRAP] = NULL; @@ -132,29 +132,29 @@ void initialize_common_api_pointers() common_set_attribute[SAI_OBJECT_TYPE_VLAN] = NULL; common_get_attribute[SAI_OBJECT_TYPE_NULL] = NULL; - common_get_attribute[SAI_OBJECT_TYPE_PORT] = sai_port_api->get_port_attribute; - common_get_attribute[SAI_OBJECT_TYPE_LAG] = sai_lag_api->get_lag_attribute; - common_get_attribute[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = sai_router_api->get_virtual_router_attribute; - common_get_attribute[SAI_OBJECT_TYPE_NEXT_HOP] = sai_next_hop_api->get_next_hop_attribute; - common_get_attribute[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = sai_next_hop_group_api->get_next_hop_group_attribute; - common_get_attribute[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = sai_router_interface_api->get_router_interface_attribute; - common_get_attribute[SAI_OBJECT_TYPE_ACL_TABLE] = sai_acl_api->get_acl_table_attribute; - common_get_attribute[SAI_OBJECT_TYPE_ACL_ENTRY] = sai_acl_api->get_acl_entry_attribute; - common_get_attribute[SAI_OBJECT_TYPE_ACL_COUNTER] = sai_acl_api->get_acl_counter_attribute; - common_get_attribute[SAI_OBJECT_TYPE_HOST_INTERFACE] = sai_hostif_api->get_hostif_attribute; - common_get_attribute[SAI_OBJECT_TYPE_TRAP_GROUP] = sai_hostif_api->get_trap_group_attribute; + common_get_attribute[SAI_OBJECT_TYPE_PORT] = (sai_port_api) ? sai_port_api->get_port_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_LAG] = (sai_lag_api) ? sai_lag_api->get_lag_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_VIRTUAL_ROUTER] = (sai_router_api) ? sai_router_api->get_virtual_router_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_NEXT_HOP] = (sai_next_hop_api) ? sai_next_hop_api->get_next_hop_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_NEXT_HOP_GROUP] = (sai_next_hop_group_api) ? sai_next_hop_group_api->get_next_hop_group_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_ROUTER_INTERFACE] = (sai_router_interface_api) ? sai_router_interface_api->get_router_interface_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_ACL_TABLE] = (sai_acl_api) ? sai_acl_api->get_acl_table_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_ACL_ENTRY] = (sai_acl_api) ? sai_acl_api->get_acl_entry_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_ACL_COUNTER] = (sai_acl_api) ? sai_acl_api->get_acl_counter_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_HOST_INTERFACE] = (sai_hostif_api) ? sai_hostif_api->get_hostif_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_TRAP_GROUP] = (sai_hostif_api) ? sai_hostif_api->get_trap_group_attribute : NULL; common_get_attribute[SAI_OBJECT_TYPE_ACL_TABLE_GROUP] = NULL; - common_get_attribute[SAI_OBJECT_TYPE_POLICER] = sai_policer_api->get_policer_attribute; - common_get_attribute[SAI_OBJECT_TYPE_WRED] = sai_wred_api->get_wred_attribute; - common_get_attribute[SAI_OBJECT_TYPE_QOS_MAPS] = sai_qos_map_api->get_qos_map_attribute; - common_get_attribute[SAI_OBJECT_TYPE_QUEUE] = sai_queue_api->get_queue_attribute; - common_get_attribute[SAI_OBJECT_TYPE_SCHEDULER] = sai_scheduler_api->get_scheduler_attribute; - common_get_attribute[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = sai_scheduler_group_api->get_scheduler_group_attribute; - common_get_attribute[SAI_OBJECT_TYPE_BUFFER_POOL] = sai_buffer_api->get_buffer_pool_attr; - common_get_attribute[SAI_OBJECT_TYPE_BUFFER_PROFILE] = sai_buffer_api->get_buffer_profile_attr; - common_get_attribute[SAI_OBJECT_TYPE_PRIORITY_GROUP] = sai_buffer_api->get_ingress_priority_group_attr; - common_get_attribute[SAI_OBJECT_TYPE_LAG_MEMBER] = sai_lag_api->get_lag_member_attribute; - common_get_attribute[SAI_OBJECT_TYPE_VLAN_MEMBER] = sai_vlan_api->get_vlan_member_attribute; + common_get_attribute[SAI_OBJECT_TYPE_POLICER] = (sai_policer_api) ? sai_policer_api->get_policer_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_WRED] = (sai_wred_api) ? sai_wred_api->get_wred_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_QOS_MAPS] = (sai_qos_map_api) ? sai_qos_map_api->get_qos_map_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_QUEUE] = (sai_queue_api) ? sai_queue_api->get_queue_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_SCHEDULER] = (sai_scheduler_api) ? sai_scheduler_api->get_scheduler_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_SCHEDULER_GROUP] = (sai_scheduler_group_api) ? sai_scheduler_group_api->get_scheduler_group_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_BUFFER_POOL] = (sai_buffer_api) ? sai_buffer_api->get_buffer_pool_attr : NULL; + common_get_attribute[SAI_OBJECT_TYPE_BUFFER_PROFILE] = (sai_buffer_api) ? sai_buffer_api->get_buffer_profile_attr : NULL; + common_get_attribute[SAI_OBJECT_TYPE_PRIORITY_GROUP] = (sai_buffer_api) ? sai_buffer_api->get_ingress_priority_group_attr : NULL; + common_get_attribute[SAI_OBJECT_TYPE_LAG_MEMBER] = (sai_lag_api) ? sai_lag_api->get_lag_member_attribute : NULL; + common_get_attribute[SAI_OBJECT_TYPE_VLAN_MEMBER] = (sai_vlan_api) ? sai_vlan_api->get_vlan_member_attribute : NULL; common_get_attribute[SAI_OBJECT_TYPE_FDB] = NULL; common_get_attribute[SAI_OBJECT_TYPE_SWITCH] = NULL; common_get_attribute[SAI_OBJECT_TYPE_TRAP] = NULL;