X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=o2ims%2Fservice%2Fwatcher%2Fpserver_port_watcher.py;h=f8d29c965060e813b3ae9a76b2f36c19cf463602;hb=44f01a560347914798d8f913696d0e495ee076f8;hp=9ab6c7d8a9129a0ee0e4c128c85bd3321dc52cfe;hpb=5ad82f634e2f10aaeccf1d2420fafc63e2d0056e;p=pti%2Fo2.git diff --git a/o2ims/service/watcher/pserver_port_watcher.py b/o2ims/service/watcher/pserver_port_watcher.py index 9ab6c7d..f8d29c9 100644 --- a/o2ims/service/watcher/pserver_port_watcher.py +++ b/o2ims/service/watcher/pserver_port_watcher.py @@ -23,16 +23,16 @@ from o2common.helper import o2logging logger = o2logging.get_logger(__name__) -class PServerPortWatcher(ResourceWatcher): +class PServerIfPortWatcher(ResourceWatcher): def __init__(self, client: BaseClient, bus: MessageBus) -> None: super().__init__(client, bus) def _targetname(self): - return "pserver_port" + return "pserver_if_port" def _probe(self, parent: StxGenericModel): - hostid = parent.id - newmodels = self._client.list(hostid=hostid) - return [commands.UpdatePserverPort(data=m, parentid=hostid) + interfaceid = parent.id + newmodels = self._client.list(interfaceid=interfaceid) + return [commands.UpdatePserverIfPort(data=m, parentid=interfaceid) for m in newmodels]