Support Fenix as admin tool
[doctor.git] / doctor_tests / common / constants.py
1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from collections import namedtuple
10
11
12 Host = namedtuple('Host', ['name', 'ip'])
13
14
15 def is_fenix(conf):
16     return conf.admin_tool.type == 'fenix'
17
18
19 class Inspector(object):
20     CONGRESS = 'congress'
21     SAMPLE = 'sample'
22     VITRAGE = 'vitrage'