initial documentation improvements

This commit is contained in:
Huy Pham 2019-09-12 10:23:46 -07:00
parent 76846fefeb
commit b43a686d6b
7 changed files with 125 additions and 223 deletions

View file

@ -58,6 +58,12 @@ def get_config_groups(config, configurable_options):
def get_links(session, node):
"""
Get
:param session:
:param node:
:return:
"""
links = []
for link_data in node.all_link_data(0):
link = convert_link(session, link_data)

View file

@ -170,7 +170,7 @@ class NodeBase(object):
:param str lon: longitude
:param str alt: altitude
:return: node data object
:rtype: core.data.NodeData
:rtype: core.emulator.data.NodeData
"""
if self.apitype is None:
return None
@ -696,6 +696,7 @@ class CoreNode(CoreNodeBase):
logging.debug("interface mac: %s - %s", veth.name, veth.hwaddr)
try:
# add network interface to the node. If unsuccessful, destroy the network interface and raise exception.
self.addnetif(veth, ifindex)
except ValueError as e:
veth.shutdown()