diff options
Diffstat (limited to 'app/monitoring/setup')
-rw-r--r-- | app/monitoring/setup/monitoring_pnic.py | 3 | ||||
-rw-r--r-- | app/monitoring/setup/monitoring_setup_manager.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/monitoring/setup/monitoring_pnic.py b/app/monitoring/setup/monitoring_pnic.py index d64c8ff..fdc1c94 100644 --- a/app/monitoring/setup/monitoring_pnic.py +++ b/app/monitoring/setup/monitoring_pnic.py @@ -17,5 +17,4 @@ class MonitoringPnic(MonitoringSimpleObject): # add monitoring setup for remote host def create_setup(self, o): - if o.get("pnic_type") != "switch": - self.setup('pnic', o) + self.setup('host_pnic', o) diff --git a/app/monitoring/setup/monitoring_setup_manager.py b/app/monitoring/setup/monitoring_setup_manager.py index d6ada33..9faf5b8 100644 --- a/app/monitoring/setup/monitoring_setup_manager.py +++ b/app/monitoring/setup/monitoring_setup_manager.py @@ -30,7 +30,7 @@ class MonitoringSetupManager(MonitoringHandler): "host": MonitoringHost(env), "otep": MonitoringOtep(env), "vedge": MonitoringVedge(env), - "pnic": MonitoringPnic(env), + "host_pnic": MonitoringPnic(env), "vnic": MonitoringVnic(env), "vservice": MonitoringVservice(env), "vnic-vconnector": MonitoringLinkVnicVconnector(env)} |