Skip to content

Commit

Permalink
Removed init dependency of AAA on swss
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
  • Loading branch information
vivekrnv committed Sep 27, 2021
1 parent 51670c3 commit c17c8f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sonic-host-services/scripts/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,6 @@ class HostConfigDaemon:
"systemctl has finished initialization -- proceeding ...")

def start(self):
init_load_flag = True
while True:
state, selectable_ = self.selector.select(DEFAULT_SELECT_TIMEOUT)
if state == self.selector.TIMEOUT:
Expand All @@ -1092,10 +1091,6 @@ class HostConfigDaemon:
cbs = self.callbacks.get(table, None)
for callback in cbs:
callback(table, key, op, dict(fvs))

if init_load_flag and table == "FEATURE" and key.lower() == "swss":
init_load_flag = False
self.load()


def main():
Expand All @@ -1104,6 +1099,7 @@ def main():
signal.signal(signal.SIGHUP, signal_handler)
daemon = HostConfigDaemon()
daemon.register_callbacks()
daemon.load()
daemon.start()


Expand Down

0 comments on commit c17c8f4

Please sign in to comment.