From 4203b071e5b91cd2fec43d55e9e2a22656b62995 Mon Sep 17 00:00:00 2001 From: Neil McKee Date: Mon, 28 Oct 2019 14:36:30 -0700 Subject: [PATCH] mod_sonic test admin-state for 'up' rather than 'enable' --- hsflowd.spec | 2 +- src/Linux/mod_sonic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hsflowd.spec b/hsflowd.spec index f86f1e1e..bf84b96e 100644 --- a/hsflowd.spec +++ b/hsflowd.spec @@ -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 diff --git a/src/Linux/mod_sonic.c b/src/Linux/mod_sonic.c index c6a12d66..e09f67a7 100644 --- a/src/Linux/mod_sonic.c +++ b/src/Linux/mod_sonic.c @@ -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;