X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2app%2Fentrypoints%2Fresource_watcher.py;h=b5570548f0dc164bc130117f39c8844174f7f01a;hb=4fabba9d441a1762e8ebd99cca3cea11dd0f0b62;hp=2e9e0c0611926dbf8a006adbb479ab7bf137355f;hpb=586f039c73d102429517cb6068de4342976e4e3f;p=pti%2Fo2.git diff --git a/o2app/entrypoints/resource_watcher.py b/o2app/entrypoints/resource_watcher.py index 2e9e0c0..b557054 100644 --- a/o2app/entrypoints/resource_watcher.py +++ b/o2app/entrypoints/resource_watcher.py @@ -83,6 +83,8 @@ class WatcherService(cotyledon.Service): child_respool = root.addchild( ResourcePoolWatcher(StxResourcePoolClient(), self.bus)) + + # Add Aggregate watch child_respool.addchild( ComputeAggWatcher(ComputeAggClient(), self.bus)) child_respool.addchild( @@ -92,6 +94,7 @@ class WatcherService(cotyledon.Service): child_respool.addchild( UndefinedAggWatcher(UndefinedAggClient(), self.bus)) + # Add Resource watch child_pserver = child_respool.addchild( PServerWatcher(StxPserverClient(), self.bus)) child_pserver.addchild( @@ -109,11 +112,10 @@ class WatcherService(cotyledon.Service): child_pserver.addchild( PServerAccWatcher(StxAccClient(), self.bus)) - self.worker.add_watcher(root) - # Add Alarm watch - root = WatcherTree( + child_respool.addchild( AlarmWatcher(StxAlarmClient(self.bus.uow), self.bus)) + self.worker.add_watcher(root) self.worker.start()