Skip to content

Commit

Permalink
minor fix - port and address for CDB subscription not hardcoded
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Novak <[email protected]>
  • Loading branch information
micnovak committed Nov 21, 2023
1 parent 6718e3d commit dc31d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/confd_gnmi_api_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def socket_loop(self, sub_sock, ext_server_sock=None):
def process_changes(self, external_changes=False):
log.debug("==> external_changes=%s", external_changes)
with socket() as sub_sock:
cdb.connect(sub_sock, cdb.SUBSCRIPTION_SOCKET, '127.0.0.1',
_tm.PORT)
cdb.connect(sub_sock, cdb.SUBSCRIPTION_SOCKET, self.adapter.addr,
self.adapter.port)
has_non_cdb = self.subscribe_monitored_paths_cdb(sub_sock)
log.debug("subscribe_done")
assert self.stop_pipe is not None
Expand Down

0 comments on commit dc31d53

Please sign in to comment.