[pve-devel] [PATCH proxmox-ve-rs 2/3] frr: fix some route deserialization types
Gabriel Goller
g.goller at proxmox.com
Fri Sep 5 13:44:57 CEST 2025
Make some properties optional and add others that aren't always used.
Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
proxmox-frr/src/de/mod.rs | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/proxmox-frr/src/de/mod.rs b/proxmox-frr/src/de/mod.rs
index 43890506253d..2771a1c36661 100644
--- a/proxmox-frr/src/de/mod.rs
+++ b/proxmox-frr/src/de/mod.rs
@@ -16,19 +16,23 @@ pub struct NextHop {
/// IP of the nexthop
pub ip: Option<IpAddr>,
/// AFI (either IPv4, IPv6 or something else)
- pub afi: String,
+ pub afi: Option<String>,
/// Index of the outgoing interface
#[serde(rename = "interfaceIndex")]
- pub interface_index: i32,
+ pub interface_index: Option<i32>,
#[serde(rename = "interfaceName")]
/// Name of the outgoing interface
- pub interface_name: String,
+ pub interface_name: Option<String>,
/// If the nexthop is active
pub active: bool,
+ /// If the nexthop is unreachable
+ pub unreachable: Option<bool>,
+ /// If the nexthop is rejected
+ pub reject: Option<bool>,
/// If the route has the onlink flag. Onlink means that we pretend that the nexthop is
/// directly attached to this link, even if it does not match any interface prefix.
#[serde(rename = "onLink")]
- pub on_link: bool,
+ pub on_link: Option<bool>,
/// Remap-Source, this rewrites the source address to the following address, if this
/// nexthop is used.
#[serde(rename = "rmapSource")]
--
2.47.2
More information about the pve-devel
mailing list