rename address to destination and add via in MeshAddDestinationMessage

This commit is contained in:
Gwendolyn 2024-03-30 21:35:07 +01:00
parent d1ba39df1c
commit 70eb10ac29

View file

@ -104,7 +104,8 @@ class MeshLayerAnnounceMessage(discriminator_value(msg_type=MeshMessageType.MESH
class MeshAddDestinationMessage(discriminator_value(msg_type=MeshMessageType.MESH_ADD_DESTINATION), BaseModel):
""" downstream node announces served destination """
address: Annotated[MacAddress, CDoc("address of the added destination",)]
destination: Annotated[MacAddress, CDoc("address of the added destination",)]
via: Annotated[MacAddress, CDoc("address of the added destination's upstream",)]
class MeshRemoveDestinationsMessage(discriminator_value(msg_type=MeshMessageType.MESH_REMOVE_DESTINATIONS), BaseModel):