Skip to content

Commit c17c8f4

Browse files
committed
Removed init dependency of AAA on swss
Signed-off-by: Vivek Reddy Karri <[email protected]>
1 parent 51670c3 commit c17c8f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sonic-host-services/scripts/hostcfgd

+1-5
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ class HostConfigDaemon:
10701070
"systemctl has finished initialization -- proceeding ...")
10711071

10721072
def start(self):
1073-
init_load_flag = True
10741073
while True:
10751074
state, selectable_ = self.selector.select(DEFAULT_SELECT_TIMEOUT)
10761075
if state == self.selector.TIMEOUT:
@@ -1092,10 +1091,6 @@ class HostConfigDaemon:
10921091
cbs = self.callbacks.get(table, None)
10931092
for callback in cbs:
10941093
callback(table, key, op, dict(fvs))
1095-
1096-
if init_load_flag and table == "FEATURE" and key.lower() == "swss":
1097-
init_load_flag = False
1098-
self.load()
10991094

11001095

11011096
def main():
@@ -1104,6 +1099,7 @@ def main():
11041099
signal.signal(signal.SIGHUP, signal_handler)
11051100
daemon = HostConfigDaemon()
11061101
daemon.register_callbacks()
1102+
daemon.load()
11071103
daemon.start()
11081104

11091105

0 commit comments

Comments
 (0)