remove destinations message base class
because the size calculation for the c types can't deal with it
This commit is contained in:
parent
0ff2bdcd00
commit
bec24c3982
1 changed files with 9 additions and 12 deletions
|
@ -161,26 +161,23 @@ class MeshLayerAnnounceMessage(MeshMessage, msg_type=MeshMessageType.MESH_LAYER_
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class BaseDestinationsMessage(MeshMessage, c_struct_name="destinations"):
|
class MeshAddDestinationsMessage(MeshMessage, msg_type=MeshMessageType.MESH_ADD_DESTINATIONS):
|
||||||
""" downstream node announces served/no longer served destination """
|
""" downstream node announces served destination """
|
||||||
addresses: list[str] = field(default_factory=list, metadata={
|
addresses: list[str] = field(default_factory=list, metadata={
|
||||||
"format": MacAddressesListFormat(max_num=16),
|
"format": MacAddressesListFormat(max_num=16),
|
||||||
"doc": "adresses of the destinations",
|
"doc": "adresses of the added destinations",
|
||||||
"c_name": "addresses",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MeshAddDestinationsMessage(BaseDestinationsMessage, msg_type=MeshMessageType.MESH_ADD_DESTINATIONS):
|
class MeshRemoveDestinationsMessage(MeshMessage, msg_type=MeshMessageType.MESH_REMOVE_DESTINATIONS):
|
||||||
""" downstream node announces served destination """
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class MeshRemoveDestinationsMessage(BaseDestinationsMessage, msg_type=MeshMessageType.MESH_REMOVE_DESTINATIONS):
|
|
||||||
""" downstream node announces no longer served destination """
|
""" downstream node announces no longer served destination """
|
||||||
pass
|
addresses: list[str] = field(default_factory=list, metadata={
|
||||||
|
"format": MacAddressesListFormat(max_num=16),
|
||||||
|
"doc": "adresses of the removed destinations",
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue