fixed formatting in docs due
This commit is contained in:
parent
5490f961a6
commit
b8ded52a66
23 changed files with 106 additions and 109 deletions
|
@ -104,7 +104,7 @@ class EmaneManager(ModelManager):
|
|||
:param interface: node interface
|
||||
:param model_name: model to get configuration for
|
||||
:return: node/interface model configuration
|
||||
"""
|
||||
"""
|
||||
# use the network-wide config values or interface(NEM)-specific values?
|
||||
if interface is None:
|
||||
return self.get_configs(node_id=node_id, config_type=model_name)
|
||||
|
@ -258,7 +258,7 @@ class EmaneManager(ModelManager):
|
|||
|
||||
:return: SUCCESS, NOT_NEEDED, NOT_READY in order to delay session
|
||||
instantiation
|
||||
"""
|
||||
"""
|
||||
logging.debug("emane setup")
|
||||
|
||||
# TODO: drive this from the session object
|
||||
|
@ -316,7 +316,7 @@ class EmaneManager(ModelManager):
|
|||
|
||||
:return: SUCCESS, NOT_NEEDED, NOT_READY in order to delay session
|
||||
instantiation
|
||||
"""
|
||||
"""
|
||||
self.reset()
|
||||
r = self.setup()
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ def _get_possible(config_type: str, config_regex: str) -> List[str]:
|
|||
:param config_type: emane configuration type
|
||||
:param config_regex: emane configuration regex
|
||||
:return: a string listing comma delimited values, if needed, empty string otherwise
|
||||
"""
|
||||
"""
|
||||
if config_type == "bool":
|
||||
return ["On", "Off"]
|
||||
|
||||
|
@ -54,8 +54,7 @@ def _get_default(config_type_name: str, config_value: List[str]) -> str:
|
|||
:param config_type_name: emane configuration type name
|
||||
:param config_value: emane configuration value list
|
||||
:return: default core config value
|
||||
"""
|
||||
|
||||
"""
|
||||
config_default = ""
|
||||
|
||||
if config_type_name == "bool":
|
||||
|
@ -78,7 +77,7 @@ def parse(manifest_path: str, defaults: Dict[str, str]) -> List[Configuration]:
|
|||
:param manifest_path: absolute manifest file path
|
||||
:param defaults: used to override default values for configurations
|
||||
:return: list of core configuration values
|
||||
"""
|
||||
"""
|
||||
|
||||
# no results when emane bindings are not present
|
||||
if not manifest:
|
||||
|
|
|
@ -70,7 +70,7 @@ class EmaneModel(WirelessModel):
|
|||
Returns the combination all all configurations (mac, phy, and external).
|
||||
|
||||
:return: all configurations
|
||||
"""
|
||||
"""
|
||||
return cls.mac_config + cls.phy_config + cls.external_config
|
||||
|
||||
@classmethod
|
||||
|
@ -79,7 +79,7 @@ class EmaneModel(WirelessModel):
|
|||
Returns the defined configuration groups.
|
||||
|
||||
:return: list of configuration groups.
|
||||
"""
|
||||
"""
|
||||
mac_len = len(cls.mac_config)
|
||||
phy_len = len(cls.phy_config) + mac_len
|
||||
config_len = len(cls.configurations())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue