Skip to content

Commit

Permalink
Return success on get api when not implemented attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 2, 2023
1 parent 5b8a871 commit f23f6cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dash-pipeline/SAI/templates/saifixedapis.cpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ sai_status_t sai_get_switch_attribute(

default:

DASH_LOG_WARN("attr %d is NOT SUPPORTED", attr->id);
DASH_LOG_WARN("attr %d is NOT SUPPORTED, but returning SAI_STATUS_SUCCESS", attr->id);

return SAI_STATUS_NOT_SUPPORTED;
return SAI_STATUS_SUCCESS;
}
}
return SAI_STATUS_SUCCESS;
Expand Down Expand Up @@ -156,9 +156,9 @@ sai_status_t sai_get_port_attribute(

default:

DASH_LOG_WARN("attr %d is NOT SUPPORTED", attr->id);
DASH_LOG_WARN("attr %d is NOT SUPPORTED, but returning SAI_STATUS_SUCCESS", attr->id);

return SAI_STATUS_NOT_SUPPORTED;
return SAI_STATUS_SUCCESS;
}
}

Expand Down Expand Up @@ -298,6 +298,8 @@ sai_status_t sai_api_initialize(
char test_proto_json[] = "/etc/dash/dash_pipeline_p4rt.txt";
int dev_id = 0;

DASH_LOG_NOTICE("GRPC call SetForwardingPipelineConfig %s => %s, %s", _grpcTarget.c_str(), test_json, test_proto_json);

auto p4info = parse_p4info(test_proto_json);

auto set_election_id = [](p4::v1::Uint128 *election_id) {
Expand Down

0 comments on commit f23f6cc

Please sign in to comment.