Skip to content

Commit

Permalink
mod_sonic test admin-state for 'up' rather than 'enable'
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Oct 28, 2019
1 parent 8ca29f6 commit 4203b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hsflowd.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: host sFlow daemon
Name: hsflowd
Version: 2.0.25
Release: 3
Release: 4
License: http://sflow.net/license.html
Group: Applications/Internet
URL: http://sflow.net
Expand Down
2 changes: 1 addition & 1 deletion src/Linux/mod_sonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ extern "C" {
myDebug(1, "sonic sflow: %s=%s", f_name->str, db_replyStr(f_val, db->replyBuf, YES));

if(my_strequal(f_name->str, HSP_SONIC_FIELD_SFLOW_ADMIN_STATE))
sflow_enable = my_strequal(f_val->str, "enable");
sflow_enable = my_strequal(f_val->str, "up"); // note: was "enable" before

if(my_strequal(f_name->str, HSP_SONIC_FIELD_SFLOW_AGENT))
sflow_agent = f_val->str;
Expand Down

0 comments on commit 4203b07

Please sign in to comment.