Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

feature/PPM-5 Integration - Client BML APIs#1568

Draft
itayx wants to merge 5 commits intomasterfrom
feature/PPM-5-integration-cleanups
Draft

feature/PPM-5 Integration - Client BML APIs#1568
itayx wants to merge 5 commits intomasterfrom
feature/PPM-5-integration-cleanups

Conversation

@itayx
Copy link
Collaborator

@itayx itayx commented Jul 28, 2020

BML Smart-Steering feature fixups and cleanups
PPM-5

itayx added 5 commits July 28, 2020 10:55
The type of the mac address parameter is incorrect.

Changed sta_mac from char[6] to uint8_t[6].

Signed-off-by: Itay Elenzweig <itayx.elenzweig@intel.com>
- In client_set_client changed incoming type from INT_ARG to STRING_ARG.
Since we are using optional parameters, we need to retrieve them from
the CLI as strings, then convert them to integers.

- Added int conversion in the client_set_client LOG print.
To print the incoming values in client_set_client, need to convert them
to type int, otherwise they will be printed as Char

- Added tlvf::mac_to_string in the client_get_client LOG print.
The received mac address needs to be converted to a readable format to
be printed.

Signed-off-by: Itay Elenzweig <itayx.elenzweig@intel.com>
Changed returning error values in the code to a negative value as
expected by the BML.

PPM-5.

Signed-off-by: Itay Elenzweig <itayx.elenzweig@intel.com>
Refactored the response handling for the "get_client" implementation.
Fixed broken return on error in the "get_client" implementation.

PPM-5.
Signed-off-by: Itay Elenzweig <itayx.elenzweig@intel.com>
As part of the persistent DB, some configuration parameters can be set
to "NOT_CONFIGURED" meaning they will not be stored persistently.

Verify that the given client configuration parameters are configured
before sending the change request.

Signed-off-by: Itay Elenzweig <itayx.elenzweig@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant