merged latest code from rodolfos merge from the latest github pull
This commit is contained in:
commit
613e550e8a
32 changed files with 267 additions and 276 deletions
|
@ -851,12 +851,10 @@ class CoreDocumentParser1(object):
|
|||
def parse_default_services(self):
|
||||
# defaults from the CORE GUI
|
||||
self.default_services = {
|
||||
'router': ['zebra', 'OSPFv2', 'OSPFv3', 'vtysh', 'IPForward'],
|
||||
'router': ['zebra', 'OSPFv2', 'OSPFv3', 'IPForward'],
|
||||
'host': ['DefaultRoute', 'SSH'],
|
||||
'PC': ['DefaultRoute', ],
|
||||
'mdr': ['zebra', 'OSPFv3MDR', 'vtysh', 'IPForward'],
|
||||
# 'prouter': ['zebra', 'OSPFv2', 'OSPFv3', 'vtysh', 'IPForward'],
|
||||
# 'xen': ['zebra', 'OSPFv2', 'OSPFv3', 'vtysh', 'IPForward'],
|
||||
'mdr': ['zebra', 'OSPFv3MDR', 'IPForward'],
|
||||
}
|
||||
default_services = xmlutils.get_first_child_by_tag_name(self.scenario, 'CORE:defaultservices')
|
||||
if not default_services:
|
||||
|
|
|
@ -603,7 +603,7 @@ class DeviceElement(NamedXmlElement):
|
|||
device_type = DevType.HOST
|
||||
|
||||
if device_type is None:
|
||||
raise Exception
|
||||
raise ValueError("unknown device type: %s" % core_device_type)
|
||||
|
||||
NamedXmlElement.__init__(self, scen_plan, parent, device_type, device_object.name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue