Skip to main content

clientapi_pve/models/
cluster_sdn_get_controllers_response_data_inner_pending.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ClusterSdnGetControllersResponseDataInnerPending : Changes that have not yet been applied to the running configuration.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClusterSdnGetControllersResponseDataInnerPending {
17
18    /// The local ASN of the controller. BGP & EVPN only.
19    #[serde(rename = "asn", skip_serializing_if = "Option::is_none")]
20    pub asn: Option<i32>,
21
22    /// Whether to use eBGP or iBGP. Auto mode chooses depending on BGP controller or falls back to iBGP.
23    #[serde(rename = "bgp-mode", skip_serializing_if = "Option::is_none")]
24    pub bgp_mode: Option<models::PveBgpModeEnum>,
25
26    /// Consider different AS paths of equal length for multipath computation. BGP only.
27    #[serde(rename = "bgp-multipath-as-relax", skip_serializing_if = "Option::is_none")]
28    pub bgp_multipath_as_relax: Option<models::PveBoolean>,
29
30    /// Enable eBGP (remote-as external). BGP only.
31    #[serde(rename = "ebgp", skip_serializing_if = "Option::is_none")]
32    pub ebgp: Option<models::PveBoolean>,
33
34    /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only.
35    #[serde(rename = "ebgp-multihop", skip_serializing_if = "Option::is_none")]
36    pub ebgp_multihop: Option<i64>,
37
38    /// Name of the IS-IS domain. IS-IS only.
39    #[serde(rename = "isis-domain", skip_serializing_if = "Option::is_none")]
40    pub isis_domain: Option<String>,
41
42    /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only.
43    #[serde(rename = "isis-ifaces", skip_serializing_if = "Option::is_none")]
44    pub isis_ifaces: Option<String>,
45
46    /// Network Entity title for this node in the IS-IS network. IS-IS only.
47    #[serde(rename = "isis-net", skip_serializing_if = "Option::is_none")]
48    pub isis_net: Option<String>,
49
50    /// Name of the loopback/dummy interface that provides the Router-IP. BGP only.
51    #[serde(rename = "loopback", skip_serializing_if = "Option::is_none")]
52    pub loopback: Option<String>,
53
54    /// Node(s) where this controller is active.
55    #[serde(rename = "node", skip_serializing_if = "Option::is_none")]
56    pub node: Option<String>,
57
58    /// List of cluster node names.
59    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
60    pub nodes: Option<String>,
61
62    /// Name of the peer group for this EVPN controller
63    #[serde(rename = "peer-group-name", skip_serializing_if = "Option::is_none")]
64    pub peer_group_name: Option<String>,
65
66    /// Comma-separated list of the peers IP addresses.
67    #[serde(rename = "peers", skip_serializing_if = "Option::is_none")]
68    pub peers: Option<String>,
69
70
71}
72
73impl ClusterSdnGetControllersResponseDataInnerPending {
74    /// Changes that have not yet been applied to the running configuration.
75    pub fn new() -> ClusterSdnGetControllersResponseDataInnerPending {
76        ClusterSdnGetControllersResponseDataInnerPending {
77            
78            asn: None,
79            
80            bgp_mode: None,
81            
82            bgp_multipath_as_relax: None,
83            
84            ebgp: None,
85            
86            ebgp_multihop: None,
87            
88            isis_domain: None,
89            
90            isis_ifaces: None,
91            
92            isis_net: None,
93            
94            loopback: None,
95            
96            node: None,
97            
98            nodes: None,
99            
100            peer_group_name: None,
101            
102            peers: None,
103            
104        }
105    }
106}
107
108