receiver suimmary print out more clear when it is deactivated and exception when trying to disable data stream in 10g mode

This commit is contained in:
2022-02-02 15:27:37 +01:00
parent 9168bc3ec9
commit 0ed7d1e9b1
2 changed files with 23 additions and 17 deletions

View File

@ -8312,6 +8312,12 @@ int set_datastream(int file_des) {
ret = FAIL;
sprintf(mess, "Could not %s. Invalid enable %d. \n", msg, enable);
LOG(logERROR, (mess));
} else if (enableTenGigabitEthernet(GET_FLAG) == 0) {
ret = FAIL;
sprintf(mess,
"Could not %s. Disabling is only enabled in 10g mode.\n",
enable);
LOG(logERROR, (mess));
} else {
ret = setDataStream(port, enable);
if (ret == FAIL) {