From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-ve-rs 2/3] frr: fix some route deserialization types
Date: Fri, 5 Sep 2025 13:44:57 +0200 [thread overview]
Message-ID: <20250905114504.195110-3-g.goller@proxmox.com> (raw)
In-Reply-To: <20250905114504.195110-1-g.goller@proxmox.com>
Make some properties optional and add others that aren't always used.
Signed-off-by: Gabriel Goller <g.goller@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
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-09-05 11:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 11:44 [pve-devel] [PATCH network/proxmox{-ve-rs, -perl-rs} 0/6] Add status endpoints for EVPN statistics Gabriel Goller
2025-09-05 11:44 ` [pve-devel] [PATCH proxmox-ve-rs 1/3] ve-config: add optional tag property to vnet Gabriel Goller
2025-09-05 11:44 ` Gabriel Goller [this message]
2025-09-05 11:44 ` [pve-devel] [PATCH proxmox-ve-rs 3/3] frr: add deserialization types for EVPN Gabriel Goller
2025-09-05 11:44 ` [pve-devel] [PATCH proxmox-perl-rs 1/2] pve-rs: sdn: fabrics: update openfabric/ospf route filtering Gabriel Goller
2025-09-05 11:45 ` [pve-devel] [PATCH proxmox-perl-rs 2/2] pve-rs: sdn: add functions to retrieve the Zone/Vnet routes Gabriel Goller
2025-09-05 11:45 ` [pve-devel] [PATCH pve-network 1/1] sdn: add vnet and zone status endpoints Gabriel Goller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250905114504.195110-3-g.goller@proxmox.com \
--to=g.goller@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.