From 70eb10ac29e6fd3b147dc4bc545c59eab5b74e86 Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Sat, 30 Mar 2024 21:35:07 +0100 Subject: [PATCH] rename address to destination and add via in MeshAddDestinationMessage --- src/c3nav/mesh/messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c3nav/mesh/messages.py b/src/c3nav/mesh/messages.py index a39f6e3b..465d2fd4 100644 --- a/src/c3nav/mesh/messages.py +++ b/src/c3nav/mesh/messages.py @@ -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):