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