Skip to content

Commit 70732f3

Browse files
lguohansanthosh-kt
authored andcommitted
[build]: combine feature and container feature table (sonic-net#5081)
1. remove container feature table 2. do not generate feature entry if the feature is not included in the image 3. rename ENABLE_* to INCLUDE_* for better clarity 4. rename feature status to feature state 5. [submodule]: update sonic-utilities * 9700e45 2020-08-03 | [show/config]: combine feature and container feature cli (sonic-net#1015) (HEAD, origin/master, origin/HEAD) [lguohan] * c9d3550 2020-08-03 | [tests]: fix drops_group_test failure on second run (sonic-net#1023) [lguohan] * dfaae69 2020-08-03 | [lldpshow]: Fix input device is not a TTY error (sonic-net#1016) [Arun Saravanan Balachandran] * 216688e 2020-08-02 | [tests]: rename sonic-utilitie-tests to tests (sonic-net#1022) [lguohan] Signed-off-by: Guohan Lu <[email protected]>
1 parent 31b94a5 commit 70732f3

19 files changed

+112
-99
lines changed

Makefile.work

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# through http.
1010
# * ENABLE_ZTP: Enables zero touch provisioning.
1111
# * SHUTDOWN_BGP_ON_START: Sets admin-down state for all bgp peerings after restart.
12-
# * INSTALL_KUBERNETES: Allows including Kubernetes
12+
# * INCLUDE_KUBERNETES: Allows including Kubernetes
1313
# * ENABLE_PFCWD_ON_START: Enable PFC Watchdog (PFCWD) on server-facing ports
1414
# * by default for TOR switch.
1515
# * ENABLE_SYNCD_RPC: Enables rpc-based syncd builds.
@@ -188,7 +188,7 @@ SONIC_BUILD_INSTRUCTION := make \
188188
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
189189
ENABLE_ZTP=$(ENABLE_ZTP) \
190190
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
191-
INSTALL_KUBERNETES=$(INSTALL_KUBERNETES) \
191+
INCLUDE_KUBERNETES=$(INCLUDE_KUBERNETES) \
192192
KUBERNETES_VERSION=$(KUBERNETES_VERSION) \
193193
KUBERNETES_CNI_VERSION=$(KUBERNETES_CNI_VERSION) \
194194
K8s_GCR_IO_PAUSE_VERSION=$(K8s_GCR_IO_PAUSE_VERSION) \
@@ -207,8 +207,8 @@ SONIC_BUILD_INSTRUCTION := make \
207207
SONIC_DPKG_CACHE_SOURCE=$(SONIC_DPKG_CACHE_SOURCE) \
208208
HTTP_PROXY=$(http_proxy) \
209209
HTTPS_PROXY=$(https_proxy) \
210-
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
211-
SONIC_ENABLE_RESTAPI=$(ENABLE_RESTAPI) \
210+
SONIC_INCLUDE_SYSTEM_TELEMETRY=$(INCLUDE_SYSTEM_TELEMETRY) \
211+
SONIC_INCLUDE_RESTAPI=$(INCLUDE_RESTAPI) \
212212
TELEMETRY_WRITABLE=$(TELEMETRY_WRITABLE) \
213213
EXTRA_DOCKER_TARGETS=$(EXTRA_DOCKER_TARGETS) \
214214
BUILD_LOG_TIMESTAMP=$(BUILD_LOG_TIMESTAMP) \

build_debian.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fi
212212

213213
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y remove software-properties-common gnupg2
214214

215-
if [ "$INSTALL_KUBERNETES" == "y" ]
215+
if [ "$INCLUDE_KUBERNETES" == "y" ]
216216
then
217217
## Install Kubernetes
218218
echo '[INFO] Install kubernetes'

files/build_scripts/mask_disabled_services.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
init_cfg = json.load(init_cfg_file)
1010
if 'FEATURE' in init_cfg:
1111
for feature_name, feature_props in init_cfg['FEATURE'].items():
12-
if 'status' in feature_props and feature_props['status'] == 'disabled':
12+
if 'state' in feature_props and feature_props['state'] == 'disabled':
1313
subprocess.run(['systemctl', 'mask', '{}.service'.format(feature_name)])

files/build_templates/init_cfg.json.j2

+19-10
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,27 @@
1717
{% endfor %}
1818
}
1919
},
20+
{%- set features = [("bgp", "enabled", "enabled"),
21+
("database", "enabled", "disabled"),
22+
("dhcp_relay", "enabled", "enabled"),
23+
("lldp", "enabled", "enabled"),
24+
("pmon", "enabled", "enabled"),
25+
("radv", "enabled", "enabled"),
26+
("snmp", "enabled", "enabled"),
27+
("swss", "enabled", "enabled"),
28+
("syncd", "enabled", "enabled"),
29+
("teamd", "enabled", "enabled")] %}
30+
{%- if include_iccpd == "y" %}{% do features.append(("iccpd", "disabled", "enabled")) %}{% endif %}
31+
{%- if include_mgmt_framework == "y" %}{% do features.append(("mgmt-framework", "enabled", "enabled")) %}{% endif %}
32+
{%- if include_nat == "y" %}{% do features.append(("nat", "disabled", "enabled")) %}{% endif %}
33+
{%- if include_restapi == "y" %}{% do features.append(("restapi", "disabled", "enabled")) %}{% endif %}
34+
{%- if include_sflow == "y" %}{% do features.append(("sflow", "disabled", "enabled")) %}{% endif %}
35+
{%- if include_system_telemetry == "y" %}{% do features.append(("telemetry", "enabled", "enabled")) %}{% endif %}
2036
"FEATURE": {
21-
{%- for feature, status in [("sflow", "disabled"), ("telemetry", "enabled")] %}
37+
{%- for feature, state, autorestart in features %}
2238
"{{feature}}": {
23-
"status": "{{status}}"
24-
}{% if not loop.last %},{% endif -%}
25-
{% endfor %}
26-
},
27-
"CONTAINER_FEATURE": {
28-
{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "nat", "pmon", "radv", "restapi", "sflow",
29-
"snmp", "swss", "syncd", "teamd", "telemetry"] %}
30-
"{{container}}": {
31-
"auto_restart": "{% if container == "database" %}disabled{% else %}enabled{% endif %}",
39+
"state": "{{state}}",
40+
"auto_restart": "{{autorestart}}",
3241
"high_mem_alert": "disabled"
3342
}{% if not loop.last %},{% endif -%}
3443
{% endfor %}

files/build_templates/sonic_debian_extension.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install azure-s
307307
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install watchdog==0.10.2
308308
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install futures==3.3.0
309309

310-
{% if install_kubernetes == "y" %}
310+
{% if include_kubernetes == "y" %}
311311
# Copy kubelet service files
312312
# Keep it disabled until join, else it continuously restart and as well spew too many
313313
# non-required log lines wasting syslog resources.
@@ -481,7 +481,7 @@ sudo LANG=C chroot $FILESYSTEM_ROOT docker $SONIC_NATIVE_DOCKERD_FOR_DOCKERFS ta
481481
{% endif %}
482482
{% endfor %}
483483

484-
{% if install_kubernetes == "y" %}
484+
{% if include_kubernetes == "y" %}
485485
## Pull in kubernetes docker images
486486
echo "pulling universal k8s images ..."
487487
FLANNEL_ARCH=$([ "${CONFIGURED_ARCH}" == "armhf" ] && echo "arm64" || echo "${CONFIGURED_ARCH}")
@@ -537,7 +537,7 @@ sudo LANG=C cp $SCRIPTS_DIR/sonic-netns-exec $FILESYSTEM_ROOT/usr/bin/sonic-netn
537537
# It implements delayed start of services
538538
sudo cp $BUILD_TEMPLATES/snmp.timer $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
539539
echo "snmp.timer" | sudo tee -a $GENERATED_SERVICE_FILE
540-
{% if enable_system_telemetry == 'y' %}
540+
{% if include_system_telemetry == 'y' %}
541541
sudo cp $BUILD_TEMPLATES/telemetry.timer $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
542542
echo "telemetry.timer" | sudo tee -a $GENERATED_SERVICE_FILE
543543
{% endif %}

files/image_config/hostcfgd/hostcfgd

+17-17
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def obfuscate(data):
4141
return data
4242

4343

44-
def update_feature_status(feature_name, status):
45-
if status == "enabled":
44+
def update_feature_state(feature_name, state):
45+
if state == "enabled":
4646
start_cmds = []
4747
start_cmds.append("sudo systemctl unmask {}.service".format(feature_name))
4848
start_cmds.append("sudo systemctl enable {}.service".format(feature_name))
@@ -56,7 +56,7 @@ def update_feature_status(feature_name, status):
5656
.format(err.cmd, err.returncode, err.output))
5757
continue
5858
syslog.syslog(syslog.LOG_INFO, "Feature '{}' is enabled and started".format(feature_name))
59-
elif status == "disabled":
59+
elif state == "disabled":
6060
stop_cmds = []
6161
stop_cmds.append("sudo systemctl stop {}.service".format(feature_name))
6262
stop_cmds.append("sudo systemctl disable {}.service".format(feature_name))
@@ -71,7 +71,7 @@ def update_feature_status(feature_name, status):
7171
continue
7272
syslog.syslog(syslog.LOG_INFO, "Feature '{}' is stopped and disabled".format(feature_name))
7373
else:
74-
syslog.syslog(syslog.LOG_ERR, "Unexpected status value '{}' for feature '{}'".format(status, feature_name))
74+
syslog.syslog(syslog.LOG_ERR, "Unexpected state value '{}' for feature '{}'".format(state, feature_name))
7575

7676

7777
class Iptables(object):
@@ -272,19 +272,19 @@ class HostConfigDaemon:
272272
self.iptables = Iptables()
273273
self.iptables.load(lpbk_table)
274274

275-
def update_all_feature_statuses(self):
275+
def update_all_feature_states(self):
276276
feature_table = self.config_db.get_table('FEATURE')
277277
for feature_name in feature_table.keys():
278278
if not feature_name:
279279
syslog.syslog(syslog.LOG_WARNING, "Feature is None")
280280
continue
281281

282-
status = feature_table[feature_name]['status']
283-
if not status:
284-
syslog.syslog(syslog.LOG_WARNING, "Status of feature '{}' is None".format(feature_name))
282+
state = feature_table[feature_name]['state']
283+
if not state:
284+
syslog.syslog(syslog.LOG_WARNING, "Eanble state of feature '{}' is None".format(feature_name))
285285
continue
286286

287-
update_feature_status(feature_name, status)
287+
update_feature_state(feature_name, state)
288288

289289
def aaa_handler(self, key, data):
290290
self.aaacfg.aaa_update(key, data)
@@ -314,29 +314,29 @@ class HostConfigDaemon:
314314

315315
self.iptables.iptables_handler(key, data, add)
316316

317-
def feature_status_handler(self, key, data):
317+
def feature_state_handler(self, key, data):
318318
feature_name = key
319319
feature_table = self.config_db.get_table('FEATURE')
320320
if feature_name not in feature_table.keys():
321321
syslog.syslog(syslog.LOG_WARNING, "Feature '{}' not in FEATURE table".format(feature_name))
322322
return
323323

324-
status = feature_table[feature_name]['status']
325-
if not status:
326-
syslog.syslog(syslog.LOG_WARNING, "Status of feature '{}' is None".format(feature_name))
324+
state = feature_table[feature_name]['state']
325+
if not state:
326+
syslog.syslog(syslog.LOG_WARNING, "Enable state of feature '{}' is None".format(feature_name))
327327
return
328328

329-
update_feature_status(feature_name, status)
329+
update_feature_state(feature_name, state)
330330

331331
def start(self):
332-
# Update all feature statuses once upon starting
333-
self.update_all_feature_statuses()
332+
# Update all feature states once upon starting
333+
self.update_all_feature_states()
334334

335335
self.config_db.subscribe('AAA', lambda table, key, data: self.aaa_handler(key, data))
336336
self.config_db.subscribe('TACPLUS_SERVER', lambda table, key, data: self.tacacs_server_handler(key, data))
337337
self.config_db.subscribe('TACPLUS', lambda table, key, data: self.tacacs_global_handler(key, data))
338338
self.config_db.subscribe('LOOPBACK_INTERFACE', lambda table, key, data: self.lpbk_handler(key, data))
339-
self.config_db.subscribe('FEATURE', lambda table, key, data: self.feature_status_handler(key, data))
339+
self.config_db.subscribe('FEATURE', lambda table, key, data: self.feature_state_handler(key, data))
340340
self.config_db.listen()
341341

342342

files/scripts/supervisor-proc-exit-listener

+14-15
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,20 @@ import swsssdk
1111
from supervisor import childutils
1212

1313
# Each line of this file should specify either one critical process or one
14-
# critical process group, (as defined in supervisord.conf file), in the
14+
# critical process group, (as defined in supervisord.conf file), in the
1515
# following format:
1616
#
1717
# program:<process_name>
1818
# group:<group_name>
1919
CRITICAL_PROCESSES_FILE = '/etc/supervisor/critical_processes'
2020

21-
# This table in databse contains the features for container and each
22-
# feature for a row will be configured a state or number.
23-
CONTAINER_FEATURE_TABLE_NAME = 'CONTAINER_FEATURE'
21+
# The FEATURE table in config db contains auto-restart field
22+
FEATURE_TABLE_NAME = 'FEATURE'
2423

2524
# Read the critical processes/group names from CRITICAL_PROCESSES_FILE
2625
def get_critical_group_and_process_list():
2726
critical_group_list = []
28-
critical_process_list = []
27+
critical_process_list = []
2928

3029
with open(CRITICAL_PROCESSES_FILE, 'r') as file:
3130
for line in file:
@@ -43,7 +42,7 @@ def get_critical_group_and_process_list():
4342
else:
4443
syslog.syslog(syslog.LOG_ERR, "Syntax of the line {} in critical_processes file is incorrect. Exiting...".format(line))
4544
sys.exit(6)
46-
45+
4746
return critical_group_list, critical_process_list
4847

4948
def main(argv):
@@ -82,23 +81,23 @@ def main(argv):
8281
if container_name != 'database':
8382
config_db = swsssdk.ConfigDBConnector()
8483
config_db.connect()
85-
container_features_table = config_db.get_table(CONTAINER_FEATURE_TABLE_NAME)
86-
if not container_features_table:
87-
syslog.syslog(syslog.LOG_ERR, "Unable to retrieve container features table from Config DB. Exiting...")
84+
features_table = config_db.get_table(FEATURE_TABLE_NAME)
85+
if not features_table:
86+
syslog.syslog(syslog.LOG_ERR, "Unable to retrieve features table from Config DB. Exiting...")
8887
sys.exit(2)
8988

90-
if not container_features_table.has_key(container_name):
91-
syslog.syslog(syslog.LOG_ERR, "Unable to retrieve features for container '{}'. Exiting...".format(container_name))
89+
if not features_table.has_key(container_name):
90+
syslog.syslog(syslog.LOG_ERR, "Unable to retrieve feature '{}'. Exiting...".format(container_name))
9291
sys.exit(3)
9392

94-
restart_feature = container_features_table[container_name].get('auto_restart')
93+
restart_feature = features_table[container_name].get('auto_restart')
9594
if not restart_feature:
96-
syslog.syslog(syslog.LOG_ERR, "Unable to determine auto-restart feature status for container '{}'. Exiting...".format(container_name))
95+
syslog.syslog(syslog.LOG_ERR, "Unable to determine auto-restart feature status for '{}'. Exiting...".format(container_name))
9796
sys.exit(4)
9897

99-
# If container is database or auto-restart feature is enabled and at the same time
98+
# If container is database or auto-restart feature is enabled and at the same time
10099
# a critical process exited unexpectedly, terminate supervisor
101-
if ((container_name == 'database' or restart_feature == 'enabled') and expected == 0 and
100+
if ((container_name == 'database' or restart_feature == 'enabled') and expected == 0 and
102101
(processname in critical_process_list or groupname in critical_group_list)):
103102
MSG_FORMAT_STR = "Process {} exited unxepectedly. Terminating supervisor..."
104103
msg = MSG_FORMAT_STR.format(payload_headers['processname'])

platform/marvell-arm64/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include $(PLATFORM_PATH)/libsaithrift-dev.mk
77
include $(PLATFORM_PATH)/docker-ptf-mrvl.mk
88
include $(PLATFORM_PATH)/one-image.mk
99
include $(PLATFORM_PATH)/linux-kernel-arm64.mk
10-
ENABLE_SYSTEM_TELEMETRY = ""
10+
INCLUDE_SYSTEM_TELEMETRY = ""
1111

1212

1313
SONIC_ALL += $(SONIC_ONE_IMAGE) \

platform/marvell-armhf/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include $(PLATFORM_PATH)/one-image.mk
99
include $(PLATFORM_PATH)/linux-kernel-armhf.mk
1010
include $(PLATFORM_PATH)/platform-et6448m.mk
1111

12-
ENABLE_SYSTEM_TELEMETRY = ""
12+
INCLUDE_SYSTEM_TELEMETRY = ""
1313
ENABLE_SYNCD_RPC = ""
1414

1515
SONIC_ALL += $(SONIC_ONE_IMAGE) \

rules/config

+16-16
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ ENABLE_ORGANIZATION_EXTENSIONS = y
8383
#SONIC_DEBUGGING_ON = y
8484
#SONIC_PROFILING_ON = y
8585

86-
# ENABLE_SYSTEM_TELEMETRY - build docker-sonic-telemetry for system telemetry support
87-
ENABLE_SYSTEM_TELEMETRY = y
88-
8986
# DEFAULT_KERNEL_PROCURE_METHOD - default method for obtaining kernel
9087
# build: build kernel from source
9188
# download: download pre-built kernel from Azure storage.
@@ -116,32 +113,35 @@ SONIC_DPKG_CACHE_SOURCE ?= /var/cache/sonic/artifacts
116113
DEFAULT_VS_PREPARE_MEM = yes
117114

118115

119-
# ENABLE_ICCPD - build docker-iccpd for mclag support
120-
ENABLE_ICCPD = n
116+
# INCLUDE_SYSTEM_TELEMETRY - build docker-sonic-telemetry for system telemetry support
117+
INCLUDE_SYSTEM_TELEMETRY = y
118+
119+
# INCLUDE_ICCPD - build docker-iccpd for mclag support
120+
INCLUDE_ICCPD = n
121121

122-
# ENABLE_SYSTEM_SFLOW - build docker-sonic-sflow for sFlow support
123-
ENABLE_SFLOW = y
122+
# INCLUDE_SFLOW - build docker-sflow for sFlow support
123+
INCLUDE_SFLOW = y
124124

125-
# ENABLE_MGMT_FRAMEWORK - build docker-sonic-mgt-framework for CLI and REST server support
126-
ENABLE_MGMT_FRAMEWORK = y
125+
# INCLUDE_MGMT_FRAMEWORK - build docker-sonic-mgmt-framework for CLI and REST server support
126+
INCLUDE_MGMT_FRAMEWORK = y
127127

128-
# ENABLE_RESTAPI - build docker-sonic-restapi for configuring the switch using REST APIs
129-
ENABLE_RESTAPI = n
128+
# INCLUDE_RESTAPI - build docker-sonic-restapi for configuring the switch using REST APIs
129+
INCLUDE_RESTAPI = n
130130

131-
# ENABLE_NAT - build docker-sonic-nat for nat support
132-
ENABLE_NAT = y
131+
# INCLUDE_NAT - build docker-nat for nat support
132+
INCLUDE_NAT = y
133133

134134
# TELEMETRY_WRITABLE - Enable write/config operations via the gNMI interface.
135135
# Uncomment to enable:
136136
# TELEMETRY_WRITABLE = y
137-
# INSTALL_KUBERNETES - if set to y kubernetes packages are installed to be able to
137+
# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to
138138
# run as worker node in kubernetes cluster.
139-
INSTALL_KUBERNETES = n
139+
INCLUDE_KUBERNETES = n
140140

141141
# KUBERNETES_VERSION - Set to the required version.
142142
# K8s_GCR_IO_PAUSE_VERSION - Version of k8s universal pause container image
143143
# K8s_CNI_FLANNEL_VERSION - Flannel used as CNI; Appropriate version for this Kubernetes version
144-
# These are Used *only* when INSTALL_KUBERNETES=y
144+
# These are Used *only* when INCLUDE_KUBERNETES=y
145145
# NOTE: As a worker node it has to run version compatible to kubernetes master.
146146
#
147147
KUBERNETES_VERSION = 1.18.6

rules/docker-iccpd.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $(DOCKER_ICCPD)_DBG_DEPENDS += $(SWSS_DBG) $(LIBSWSSCOMMON_DBG) $(ICCPD_DBG)
1010
$(DOCKER_ICCPD)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_IMAGE_PACKAGES)
1111
$(DOCKER_ICCPD)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
1212

13-
ifeq ($(ENABLE_ICCPD), y)
13+
ifeq ($(INCLUDE_ICCPD), y)
1414
SONIC_DOCKER_IMAGES += $(DOCKER_ICCPD)
1515
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_ICCPD)
1616
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_ICCPD_DBG)

rules/docker-nat.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ $(DOCKER_NAT)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_IMAGE_PA
1313

1414
$(DOCKER_NAT)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
1515

16-
ifeq ($(ENABLE_NAT), y)
16+
ifeq ($(INCLUDE_NAT), y)
1717
SONIC_DOCKER_IMAGES += $(DOCKER_NAT)
1818
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_NAT)
1919
endif
2020

21-
ifeq ($(ENABLE_NAT), y)
21+
ifeq ($(INCLUDE_NAT), y)
2222
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_NAT_DBG)
2323
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_NAT_DBG)
2424
endif

rules/docker-restapi.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $(DOCKER_RESTAPI)_PATH = $(DOCKERS_PATH)/$(DOCKER_RESTAPI_STEM)
1010

1111
$(DOCKER_RESTAPI)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
1212

13-
ifeq ($(ENABLE_RESTAPI), y)
13+
ifeq ($(INCLUDE_RESTAPI), y)
1414
SONIC_DOCKER_IMAGES += $(DOCKER_RESTAPI)
1515
SONIC_STRETCH_DOCKERS += $(DOCKER_RESTAPI)
1616
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_RESTAPI)

rules/docker-sflow.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ $(DOCKER_SFLOW)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_IMAGE_
1414
$(DOCKER_SFLOW)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
1515

1616
SONIC_DOCKER_IMAGES += $(DOCKER_SFLOW)
17-
ifeq ($(ENABLE_SFLOW), y)
17+
ifeq ($(INCLUDE_SFLOW), y)
1818
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SFLOW)
1919
endif
2020

2121
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_SFLOW_DBG)
22-
ifeq ($(ENABLE_SFLOW), y)
22+
ifeq ($(INCLUDE_SFLOW), y)
2323
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_SFLOW_DBG)
2424
endif
2525

0 commit comments

Comments
 (0)