Skip to content

Commit

Permalink
Make sure collector VRF change is recognized as config change
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Jun 15, 2020
1 parent 9c7a98c commit 8c5ce32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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.26
Release: 6
Release: 7
License: http://sflow.net/license.html
Group: Applications/Internet
URL: http://sflow.net
Expand Down
8 changes: 6 additions & 2 deletions src/Linux/hsflowconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,12 @@ extern "C" {
// so let's hope the slave agents all do the right thing with that(!)
if(collector->ipAddr.type != SFLADDRESSTYPE_UNDEFINED) {
char collectorStr[128];
// <ip> <port> [<priority>]
sprintf(collectorStr, "collector=%s %u\n", SFLAddress_print(&collector->ipAddr, ipbuf, 50), collector->udpPort);
// ip/port/deviceName/namespace
sprintf(collectorStr, "collector=%s/%u/%s/%s\n",
SFLAddress_print(&collector->ipAddr, ipbuf, 50),
collector->udpPort,
collector->deviceName ?: "",
collector->namespace ?: "");
strArrayAdd(iplist, collectorStr);
}
}
Expand Down

0 comments on commit 8c5ce32

Please sign in to comment.