2017-04-25 16:45:34 +01:00
|
|
|
"""
|
2018-03-28 21:58:49 +01:00
|
|
|
EMANE Bypass model for CORE
|
2017-04-25 16:45:34 +01:00
|
|
|
"""
|
2018-07-03 20:48:54 +01:00
|
|
|
from core.conf import ConfigGroup
|
2018-06-06 22:51:45 +01:00
|
|
|
from core.conf import Configuration
|
2018-03-29 22:38:32 +01:00
|
|
|
from core.emane import emanemodel
|
2017-04-25 16:45:34 +01:00
|
|
|
from core.enumerations import ConfigDataTypes
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
|
2018-03-29 22:38:32 +01:00
|
|
|
class EmaneBypassModel(emanemodel.EmaneModel):
|
2017-04-25 16:45:34 +01:00
|
|
|
name = "emane_bypass"
|
2018-03-29 21:32:06 +01:00
|
|
|
|
2018-03-30 20:08:33 +01:00
|
|
|
# values to ignore, when writing xml files
|
2018-03-29 21:32:06 +01:00
|
|
|
config_ignore = {"none"}
|
2018-03-30 20:08:33 +01:00
|
|
|
|
|
|
|
# mac definitions
|
|
|
|
mac_library = "bypassmaclayer"
|
2018-03-30 20:52:10 +01:00
|
|
|
mac_config = [
|
2018-06-06 22:51:45 +01:00
|
|
|
Configuration(
|
|
|
|
_id="none",
|
|
|
|
_type=ConfigDataTypes.BOOL,
|
|
|
|
default="0",
|
|
|
|
options=["True", "False"],
|
|
|
|
label="There are no parameters for the bypass model."
|
|
|
|
)
|
2013-08-29 15:21:13 +01:00
|
|
|
]
|
2018-03-29 23:13:16 +01:00
|
|
|
|
2018-03-30 20:08:33 +01:00
|
|
|
# phy definitions
|
|
|
|
phy_library = "bypassphylayer"
|
2018-03-30 20:52:10 +01:00
|
|
|
phy_config = []
|
2018-03-30 20:08:33 +01:00
|
|
|
|
2018-06-06 22:51:45 +01:00
|
|
|
# override config groups
|
|
|
|
@classmethod
|
|
|
|
def config_groups(cls):
|
2018-07-03 20:48:54 +01:00
|
|
|
return [
|
|
|
|
ConfigGroup("Bypass Parameters", 1, 1),
|
|
|
|
]
|