def _addDefaults(self, conf):
        conf.setdefault('host', self.host)
        conf.setdefault('port', self._port)
        conf.setdefault('description', self._description)
        conf.setdefault('repeat', str(self.repeat))

        if conf['host'] == self.host:
            conf.setdefault('addr', self.addr)
Add default values based on this test to a subtest config
dataset/ETHPy150Open marineam/nagcat/python/nagcat/test.py/Test._addDefaults