clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Virtual Environment API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PveSdnControllerEvpnConfig {

    /// autonomous system number
    #[serde(rename = "asn")]
    pub asn: i32,

    /// peers address list.
    #[serde(rename = "peers", skip_serializing_if = "Option::is_none")]
    pub peers: Option<String>,

    /// SDN fabric to use as underlay for this EVPN controller.
    #[serde(rename = "fabric", skip_serializing_if = "Option::is_none")]
    pub fabric: Option<String>,

    #[serde(rename = "type")]
    pub r#type: Type,


}

impl PveSdnControllerEvpnConfig {
    pub fn new(asn: i32, r#type: Type) -> PveSdnControllerEvpnConfig {
        PveSdnControllerEvpnConfig {
            
            asn,
            
            peers: None,
            
            fabric: None,
            
            r#type,
            
        }
    }
}

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "evpn")]
    Evpn,
}

impl Default for Type {
    fn default() -> Type {
        Self::Evpn
    }
}