[PATCH proxmox-ve-rs v5 04/46] frr: add constructor to prefix list name

Stefan Hanreich
2026-05-05T15:38:16Z

Notes:
Only required if Gabriel's vtysh integration test series isn't
applied.

proxmox-frr/src/ser/route_map.rs | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/proxmox-frr/src/ser/route_map.rs b/proxmox-frr/src/ser/route_map.rs
index 1e0dd48..bd3fa4f 100644
--- a/proxmox-frr/src/ser/route_map.rs
+++ b/proxmox-frr/src/ser/route_map.rs
@@ -39,6 +39,12 @@ pub struct AccessListName(String);
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub struct PrefixListName(String);

+impl PrefixListName {
+ pub fn new(name: String) -> PrefixListName {
+ PrefixListName(name)
+ }
+}
+
impl AccessListName {
pub fn new(name: String) -> AccessListName {
AccessListName(name)
--
2.47.3