Skip to content

Commit 78c8038

Browse files
lguohanabdosi
authored andcommitted
[build]: combine feature and container feature table (#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 (#1015) (HEAD, origin/master, origin/HEAD) [lguohan] * c9d3550 2020-08-03 | [tests]: fix drops_group_test failure on second run (#1023) [lguohan] * dfaae69 2020-08-03 | [lldpshow]: Fix input device is not a TTY error (#1016) [Arun Saravanan Balachandran] * 216688e 2020-08-02 | [tests]: rename sonic-utilitie-tests to tests (#1022) [lguohan] Signed-off-by: Guohan Lu <[email protected]>
1 parent 597794a commit 78c8038

17 files changed

+107
-94
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.
@@ -166,7 +166,7 @@ SONIC_BUILD_INSTRUCTION := make \
166166
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
167167
ENABLE_ZTP=$(ENABLE_ZTP) \
168168
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
169-
INSTALL_KUBERNETES=$(INSTALL_KUBERNETES) \
169+
INCLUDE_KUBERNETES=$(INCLUDE_KUBERNETES) \
170170
KUBERNETES_VERSION=$(KUBERNETES_VERSION) \
171171
KUBERNETES_CNI_VERSION=$(KUBERNETES_CNI_VERSION) \
172172
K8s_GCR_IO_PAUSE_VERSION=$(K8s_GCR_IO_PAUSE_VERSION) \
@@ -181,8 +181,8 @@ SONIC_BUILD_INSTRUCTION := make \
181181
KERNEL_PROCURE_METHOD=$(KERNEL_PROCURE_METHOD) \
182182
HTTP_PROXY=$(http_proxy) \
183183
HTTPS_PROXY=$(https_proxy) \
184-
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
185-
SONIC_ENABLE_RESTAPI=$(ENABLE_RESTAPI) \
184+
SONIC_ENABLE_SYSTEM_TELEMETRY=$(INCLUDE_SYSTEM_TELEMETRY) \
185+
SONIC_ENABLE_RESTAPI=$(INCLUDE_RESTAPI) \
186186
EXTRA_JESSIE_TARGETS=$(EXTRA_JESSIE_TARGETS) \
187187
$(SONIC_OVERRIDE_BUILD_VARS)
188188

build_debian.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update
207207
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSION} docker-ce-cli=${DOCKER_VERSION}
208208
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y remove software-properties-common gnupg2
209209

210-
if [ "$INSTALL_KUBERNETES" == "y" ]
210+
if [ "$INCLUDE_KUBERNETES" == "y" ]
211211
then
212212
## Install Kubernetes
213213
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
@@ -267,7 +267,7 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install azure-s
267267
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install watchdog==0.10.2
268268
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install futures==3.3.0
269269

270-
{% if install_kubernetes == "y" %}
270+
{% if include_kubernetes == "y" %}
271271
# Copy kubelet service files
272272
# Keep it disabled until join, else it continuously restart and as well spew too many
273273
# non-required log lines wasting syslog resources.
@@ -425,7 +425,7 @@ sudo LANG=C chroot $FILESYSTEM_ROOT docker $SONIC_NATIVE_DOCKERD_FOR_DOCKERFS ta
425425
{% endif %}
426426
{% endfor %}
427427

428-
{% if install_kubernetes == "y" %}
428+
{% if include_kubernetes == "y" %}
429429
## Pull in kubernetes docker images
430430
echo "pulling universal k8s images ..."
431431
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT docker pull k8s.gcr.io/pause:${K8s_GCR_IO_PAUSE_VERSION}
@@ -471,7 +471,7 @@ sudo LANG=C cp $SCRIPTS_DIR/sonic-netns-exec $FILESYSTEM_ROOT/usr/bin/sonic-netn
471471
# It implements delayed start of services
472472
sudo cp $BUILD_TEMPLATES/snmp.timer $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
473473
echo "snmp.timer" | sudo tee -a $GENERATED_SERVICE_FILE
474-
{% if enable_system_telemetry == 'y' %}
474+
{% if include_system_telemetry == 'y' %}
475475
sudo cp $BUILD_TEMPLATES/telemetry.timer $FILESYSTEM_ROOT_USR_LIB_SYSTEMD_SYSTEM
476476
echo "telemetry.timer" | sudo tee -a $GENERATED_SERVICE_FILE
477477
{% 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):
@@ -268,19 +268,19 @@ class HostConfigDaemon:
268268
self.iptables = Iptables()
269269
self.iptables.load(lpbk_table)
270270

271-
def update_all_feature_statuses(self):
271+
def update_all_feature_states(self):
272272
feature_table = self.config_db.get_table('FEATURE')
273273
for feature_name in feature_table.keys():
274274
if not feature_name:
275275
syslog.syslog(syslog.LOG_WARNING, "Feature is None")
276276
continue
277277

278-
status = feature_table[feature_name]['status']
279-
if not status:
280-
syslog.syslog(syslog.LOG_WARNING, "Status of feature '{}' is None".format(feature_name))
278+
state = feature_table[feature_name]['state']
279+
if not state:
280+
syslog.syslog(syslog.LOG_WARNING, "Eanble state of feature '{}' is None".format(feature_name))
281281
continue
282282

283-
update_feature_status(feature_name, status)
283+
update_feature_state(feature_name, state)
284284

285285
def aaa_handler(self, key, data):
286286
self.aaacfg.aaa_update(key, data)
@@ -310,29 +310,29 @@ class HostConfigDaemon:
310310

311311
self.iptables.iptables_handler(key, data, add)
312312

313-
def feature_status_handler(self, key, data):
313+
def feature_state_handler(self, key, data):
314314
feature_name = key
315315
feature_table = self.config_db.get_table('FEATURE')
316316
if feature_name not in feature_table.keys():
317317
syslog.syslog(syslog.LOG_WARNING, "Feature '{}' not in FEATURE table".format(feature_name))
318318
return
319319

320-
status = feature_table[feature_name]['status']
321-
if not status:
322-
syslog.syslog(syslog.LOG_WARNING, "Status of feature '{}' is None".format(feature_name))
320+
state = feature_table[feature_name]['state']
321+
if not state:
322+
syslog.syslog(syslog.LOG_WARNING, "Enable state of feature '{}' is None".format(feature_name))
323323
return
324324

325-
update_feature_status(feature_name, status)
325+
update_feature_state(feature_name, state)
326326

327327
def start(self):
328-
# Update all feature statuses once upon starting
329-
self.update_all_feature_statuses()
328+
# Update all feature states once upon starting
329+
self.update_all_feature_states()
330330

331331
self.config_db.subscribe('AAA', lambda table, key, data: self.aaa_handler(key, data))
332332
self.config_db.subscribe('TACPLUS_SERVER', lambda table, key, data: self.tacacs_server_handler(key, data))
333333
self.config_db.subscribe('TACPLUS', lambda table, key, data: self.tacacs_global_handler(key, data))
334334
self.config_db.subscribe('LOOPBACK_INTERFACE', lambda table, key, data: self.lpbk_handler(key, data))
335-
self.config_db.subscribe('FEATURE', lambda table, key, data: self.feature_status_handler(key, data))
335+
self.config_db.subscribe('FEATURE', lambda table, key, data: self.feature_state_handler(key, data))
336336
self.config_db.listen()
337337

338338

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
ENABLE_SYNCD_RPC = ""
1212

1313

platform/marvell-armhf/rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include $(PLATFORM_PATH)/docker-ptf-mrvl.mk
88
include $(PLATFORM_PATH)/one-image.mk
99
include $(PLATFORM_PATH)/linux-kernel-armhf.mk
1010

11-
ENABLE_SYSTEM_TELEMETRY = ""
11+
INCLUDE_SYSTEM_TELEMETRY = ""
1212
ENABLE_SYNCD_RPC = ""
1313

1414
SONIC_ALL += $(SONIC_ONE_IMAGE) \

rules/config

+14-13
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ ENABLE_ORGANIZATION_EXTENSIONS = y
7979
#SONIC_DEBUGGING_ON = y
8080
#SONIC_PROFILING_ON = y
8181

82-
# ENABLE_SYSTEM_TELEMETRY - build docker-sonic-telemetry for system telemetry support
83-
ENABLE_SYSTEM_TELEMETRY = y
84-
8582
# DEFAULT_KERNEL_PROCURE_METHOD - default method for obtaining kernel
8683
# build: build kernel from source
8784
# download: download pre-built kernel from Azure storage.
@@ -99,21 +96,25 @@ FRR_USER_GID = 300
9996
# Default VS build memory preparation
10097
DEFAULT_VS_PREPARE_MEM = yes
10198

102-
# ENABLE_SYSTEM_SFLOW - build docker-sonic-sflow for sFlow support
103-
ENABLE_SFLOW = y
10499

105-
# ENABLE_MGMT_FRAMEWORK - build docker-sonic-mgt-framework for CLI and REST server support
106-
ENABLE_MGMT_FRAMEWORK = y
100+
# INCLUDE_SYSTEM_TELEMETRY - build docker-sonic-telemetry for system telemetry support
101+
INCLUDE_SYSTEM_TELEMETRY = y
102+
103+
# INCLUDE_SFLOW - build docker-sflow for sFlow support
104+
INCLUDE_SFLOW = y
105+
106+
# INCLUDE_MGMT_FRAMEWORK - build docker-sonic-mgmt-framework for CLI and REST server support
107+
INCLUDE_MGMT_FRAMEWORK = y
107108

108-
# ENABLE_RESTAPI - build docker-sonic-restapi for configuring the switch using REST APIs
109-
ENABLE_RESTAPI = n
109+
# INCLUDE_RESTAPI - build docker-sonic-restapi for configuring the switch using REST APIs
110+
INCLUDE_RESTAPI = n
110111

111-
# ENABLE_NAT - build docker-sonic-nat for nat support
112-
ENABLE_NAT = y
112+
# INCLUDE_NAT - build docker-nat for nat support
113+
INCLUDE_NAT = y
113114

114-
# INSTALL_KUBERNETES - if set to y kubernetes packages are installed to be able to
115+
# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to
115116
# run as worker node in kubernetes cluster.
116-
INSTALL_KUBERNETES = n
117+
INCLUDE_KUBERNETES = n
117118

118119
# KUBERNETES_VERSION - Set to the required version.
119120
# K8s_GCR_IO_PAUSE_VERSION - Version of k8s universal pause container image

rules/docker-nat.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ $(DOCKER_NAT)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_IMAGE_P
1313

1414
$(DOCKER_NAT)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
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
SONIC_STRETCH_DOCKERS += $(DOCKER_NAT)
2020
endif
2121

22-
ifeq ($(ENABLE_NAT), y)
22+
ifeq ($(INCLUDE_NAT), y)
2323
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_NAT_DBG)
2424
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_NAT_DBG)
2525
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_NAT_DBG)

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,13 +14,13 @@ $(DOCKER_SFLOW)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_IMAGE
1414
$(DOCKER_SFLOW)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
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
SONIC_STRETCH_DOCKERS += $(DOCKER_SFLOW)
2020
endif
2121

2222
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_SFLOW_DBG)
23-
ifeq ($(ENABLE_SFLOW), y)
23+
ifeq ($(INCLUDE_SFLOW), y)
2424
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_SFLOW_DBG)
2525
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SFLOW_DBG)
2626
endif

rules/docker-sonic-mgmt-framework.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ SONIC_DOCKER_IMAGES += $(DOCKER_MGMT_FRAMEWORK)
1414
$(DOCKER_MGMT_FRAMEWORK)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
1515
$(DOCKER_MGMT_FRAMEWORK)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_STRETCH)_DBG_IMAGE_PACKAGES)
1616

17-
ifeq ($(ENABLE_MGMT_FRAMEWORK), y)
17+
ifeq ($(INCLUDE_MGMT_FRAMEWORK), y)
1818
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_MGMT_FRAMEWORK)
1919
SONIC_STRETCH_DOCKERS += $(DOCKER_MGMT_FRAMEWORK)
2020
endif
2121

2222
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_MGMT_FRAMEWORK_DBG)
23-
ifeq ($(ENABLE_MGMT_FRAMEWORK), y)
23+
ifeq ($(INCLUDE_MGMT_FRAMEWORK), y)
2424
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_MGMT_FRAMEWORK_DBG)
2525
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_MGMT_FRAMEWORK_DBG)
2626
endif

0 commit comments

Comments
 (0)