def setUp(self): with open(os.path.join(INPUT_DIR, 'lldpctl.json')) as f: self._json = json.load(f) with open(os.path.join(INPUT_DIR, 'lldpctl_mgmt_only.json')) as f: self._json_short = json.load(f) with open(os.path.join(INPUT_DIR, 'short_short.json')) as f: self._json_short_short = json.load(f) self.daemon = lldp_syncd.LldpSyncDaemon()
def setUp(self): with open(os.path.join(INPUT_DIR, 'lldpctl.json')) as f: self._json = json.load(f) with open(os.path.join(INPUT_DIR, 'lldpctl_mgmt_only.json')) as f: self._json_short = json.load(f) with open(os.path.join(INPUT_DIR, 'short_short.json')) as f: self._json_short_short = json.load(f) with open(os.path.join(INPUT_DIR, 'lldpctl_single_loc_mgmt_ip.json')) as f: self._single_loc_mgmt_ip = json.load(f) with open(os.path.join(INPUT_DIR, 'interface_only.json')) as f: self._interface_only = json.load(f) with open( os.path.join(INPUT_DIR, 'lldpctl_no_neighbors_loc_mgmt_ip.json')) as f: self._no_neighbors_loc_mgmt_ip = json.load(f) self.daemon = lldp_syncd.LldpSyncDaemon()