X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=doctor_tests%2Finspector%2F__init__.py;h=31291baf7347e161f5976c8ee101308b8c041581;hb=42333625db781f1ae12212ce903df9b5257ff5e4;hp=3be79e57a78a09cff911c58000546853f1c3b519;hpb=44d1e135eced7afe13b8772a610ae5cdae310b68;p=doctor.git diff --git a/doctor_tests/inspector/__init__.py b/doctor_tests/inspector/__init__.py index 3be79e57..31291baf 100644 --- a/doctor_tests/inspector/__init__.py +++ b/doctor_tests/inspector/__init__.py @@ -11,10 +11,12 @@ import os from oslo_config import cfg from oslo_utils import importutils +from doctor_tests.common.constants import Inspector + OPTS = [ cfg.StrOpt('type', - default=os.environ.get('INSPECTOR_TYPE', 'sample'), + default=os.environ.get('INSPECTOR_TYPE', Inspector.SAMPLE), choices=['sample', 'congress', 'vitrage'], help='the component of doctor inspector', required=True), @@ -26,12 +28,17 @@ OPTS = [ default='12345', help='the port of default for inspector', required=False), + cfg.BoolOpt('update_neutron_port_dp_status', + default=False, + help='Update data plane status of affected neutron ports', + required=False), ] _inspector_name_class_mapping = { - 'sample': 'doctor_tests.inspector.sample.SampleInspector', - 'congress': 'doctor_tests.inspector.congress.CongressInspector', + Inspector.SAMPLE: 'doctor_tests.inspector.sample.SampleInspector', + Inspector.CONGRESS: 'doctor_tests.inspector.congress.CongressInspector', + Inspector.VITRAGE: 'doctor_tests.inspector.vitrage.VitrageInspector', }