US2925 add monitoring of host pNIC in OVS 01/41201/1
authoryayogev <yaronyogev@gmail.com>
Wed, 6 Sep 2017 17:17:57 +0000 (20:17 +0300)
committeryayogev <yaronyogev@gmail.com>
Wed, 6 Sep 2017 17:17:57 +0000 (20:17 +0300)
commitf6bd0ee9158de10e75011783c087171898705ad0
tree57a19bb65b613777db19648ebd660c3d51422f32
parentf666cfba54d300366822de2046766776c3e7771f
US2925 add monitoring of host pNIC in OVS

- check_interface.py: renamed to check_pnic_ovs.py
- check_interface.py: check changed to use 'ip link show' command
- monitor.py: handle check name where object type contains underscore,
  specifically 'host_pnic'
- monitor.py: refactored to work as class
- monitoring_pnic.py: changed to handle either OVS or VPP
- monitoring_check_handler.py: change to allow defining hard-coded
  check_type string for file_type naming
- monitoring config templates: removed default handler

Change-Id: Iad38fa108e9ceae18a7c94b3570a8d9b836a8632
Signed-off-by: yayogev <yaronyogev@gmail.com>
app/install/db/monitoring_config_templates.json
app/monitoring/checks/check_pnic_ovs.py [moved from app/monitoring/checks/check_interface.py with 61% similarity]
app/monitoring/handlers/handle_host_pnic.py [moved from app/monitoring/handlers/handle_pnic.py with 58% similarity]
app/monitoring/handlers/monitor.py
app/monitoring/setup/monitoring_check_handler.py
app/monitoring/setup/monitoring_pnic.py