Merge branch 'master' into cleanup/codacy-cleanup

This commit is contained in:
bharnden 2018-10-18 16:21:05 -07:00 committed by GitHub
commit a7bc7500fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 53 additions and 63 deletions

View file

@ -87,13 +87,11 @@ class CoreXmlDeployment(object):
def find_device(self, name):
device = self.scenario.find("devices/device[@name='%s']" % name)
logger.info("specific found scenario device: %s", device)
return device
def find_interface(self, device, name):
interface = self.scenario.find("devices/device[@name='%s']/interfaces/interface[@name='%s']" % (
device.name, name))
logger.info("specific found scenario interface: %s", interface)
return interface
def add_deployment(self):