eede9a9db9
As per SONiC CLI requirements, we wanted the collector port to default to 6343 if not explicitly configured. In the Click based CLI, if the collector port is omitted, the port will be set to 6343 by default (https://github.com/Azure/sonic-utilities/blob/master/config/main.py#L2543). However, if sonic-mgmt-framework based CLI is used, hsflowd was using port 0 as default. host-sflow v2.0.26-4 addresses this issue (i.e. use 6343 in case “collector_port” is not set). Upgrade hsflowd to v2.0.26-4 to pick up https://github.com/sflow/host-sflow/releases/tag/v2.0.26-4.
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# host-sflow package
|
|
|
|
HSFLOWD_VERSION = 2.0.26
|
|
HSFLOWD_SUBVERSION = 4
|
|
export HSFLOWD_VERSION HSFLOWD_SUBVERSION
|
|
|
|
HSFLOWD = hsflowd_$(HSFLOWD_VERSION)-$(HSFLOWD_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
$(HSFLOWD)_DEPENDS += $(LIBHIREDIS_DEV)
|
|
$(HSFLOWD)_SRC_PATH = $(SRC_PATH)/sflow/hsflowd
|
|
|
|
SONIC_MAKE_DEBS += $(HSFLOWD)
|
|
SONIC_STRETCH_DEBS += $(HSFLOWD)
|
|
|
|
HSFLOWD_DBG = hsflowd-dbg_$(HSFLOWD_VERSION)-$(HSFLOWD_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
$(HSFLOWD_DBG)_DEPENDS += $(HSFLOWD)
|
|
$(HSFLOWD_DBG)_RDEPENDS += $(HSFLOWD)
|
|
$(eval $(call add_derived_package,$(HSFLOWD),$(HSFLOWD_DBG)))
|
|
|
|
export HSFLOWD HSFLOWD_DBG
|
|
|
|
# sflowtool package
|
|
|
|
SFLOWTOOL_VERSION = 5.04
|
|
export SFLOWTOOL_VERSION
|
|
|
|
SFLOWTOOL = sflowtool_$(SFLOWTOOL_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(SFLOWTOOL)_SRC_PATH = $(SRC_PATH)/sflow/sflowtool
|
|
|
|
SONIC_MAKE_DEBS += $(SFLOWTOOL)
|
|
SONIC_STRETCH_DEBS += $(SFLOWTOOL)
|
|
export SFLOWTOOL
|
|
|
|
# psample package
|
|
|
|
PSAMPLE_VERSION = 1.1
|
|
PSAMPLE_SUBVERSION = 1
|
|
export PSAMPLE_VERSION PSAMPLE_SUBVERSION
|
|
|
|
PSAMPLE = psample_$(PSAMPLE_VERSION)-$(PSAMPLE_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
$(PSAMPLE)_SRC_PATH = $(SRC_PATH)/sflow/psample
|
|
|
|
SONIC_MAKE_DEBS += $(PSAMPLE)
|
|
SONIC_STRETCH_DEBS += $(PSAMPLE)
|
|
export PSAMPLE
|
|
|
|
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
|
# are archived into debug one image to facilitate debugging.
|
|
#
|
|
DBG_SRC_ARCHIVE += sflow
|