@@ -13,41 +13,42 @@ type Peer struct {
13
13
Disabled * bool `yaml:"disabled" description:"Should the sessions be disabled?" default:"false"`
14
14
15
15
// BGP Attributes
16
- ASN * int `yaml:"asn" description:"Local ASN" validate:"required" default:"0"`
17
- NeighborIPs * []string `yaml:"neighbors" description:"List of neighbor IPs" validate:"required,ip" default:"-"`
18
- Prepends * int `yaml:"prepends" description:"Number of times to prepend local AS on export" default:"0"`
19
- PrependPath * []uint32 `yaml:"prepend-path" description:"List of ASNs to prepend" default:"-"`
20
- ClearPath * bool `yaml:"clear-path" description:"Remove all ASNs from path (before prepends and prepend-path)" default:"false"`
21
- LocalPref * int `yaml:"local-pref" description:"BGP local preference" default:"100"`
22
- SetLocalPref * bool `yaml:"set-local-pref" description:"Should an explicit local pref be set?" default:"true"`
23
- Multihop * bool `yaml:"multihop" description:"Should BGP multihop be enabled? (255 max hops)" default:"false"`
24
- Listen4 * string `yaml:"listen4" description:"IPv4 BGP listen address" default:"-"`
25
- Listen6 * string `yaml:"listen6" description:"IPv6 BGP listen address" default:"-"`
26
- LocalASN * int `yaml:"local-asn" description:"Local ASN as defined in the global ASN field" default:"-"`
27
- LocalPort * int `yaml:"local-port" description:"Local TCP port" default:"179"`
28
- NeighborPort * int `yaml:"neighbor-port" description:"Neighbor TCP port" default:"179"`
29
- Passive * bool `yaml:"passive" description:"Should we listen passively?" default:"false"`
30
- Direct * bool `yaml:"direct" description:"Specify that the neighbor is directly connected" default:"false"`
31
- NextHopSelf * bool `yaml:"next-hop-self" description:"Should BGP next-hop-self be enabled?" default:"false"`
32
- BFD * bool `yaml:"bfd" description:"Should BFD be enabled?" default:"false"`
33
- Password * string `yaml:"password" description:"BGP MD5 password" default:"-"`
34
- RSClient * bool `yaml:"rs-client" description:"Should this peer be a route server client?" default:"false"`
35
- RRClient * bool `yaml:"rr-client" description:"Should this peer be a route reflector client?" default:"false"`
36
- RemovePrivateASNs * bool `yaml:"remove-private-asns" description:"Should private ASNs be removed from path before exporting?" default:"true"`
37
- MPUnicast46 * bool `yaml:"mp-unicast-46" description:"Should this peer be configured with multiprotocol IPv4 and IPv6 unicast?" default:"false"`
38
- AllowLocalAS * bool `yaml:"allow-local-as" description:"Should routes originated by the local ASN be accepted?" default:"false"`
39
- AddPathTx * bool `yaml:"add-path-tx" description:"Enable BGP additional paths on export?" default:"false"`
40
- AddPathRx * bool `yaml:"add-path-rx" description:"Enable BGP additional paths on import?" default:"false"`
41
- ImportNextHop * string `yaml:"import-next-hop" description:"Rewrite the BGP next hop before importing routes learned from this peer" default:"-"`
42
- ExportNextHop * string `yaml:"export-next-hop" description:"Rewrite the BGP next hop before announcing routes to this peer" default:"-"`
43
- Confederation * int `yaml:"confederation" description:"BGP confederation (RFC 5065)" default:"-"`
44
- ConfederationMember * bool `yaml:"confederation-member" description:"Should this peer be a member of the local confederation?" default:"false"`
45
- TTLSecurity * bool `yaml:"ttl-security" description:"RFC 5082 Generalized TTL Security Mechanism" default:"false"`
46
- InterpretCommunities * bool `yaml:"interpret-communities" description:"Should well-known BGP communities be interpreted by their intended action?" default:"true"`
47
- DefaultLocalPref * int `yaml:"default-local-pref" description:"Default value for local preference" default:"-"`
48
- AdvertiseHostname * bool `yaml:"advertise-hostname" description:"Advertise hostname capability" default:"false"`
49
- DisableAfterError * bool `yaml:"disable-after-error" description:"Disable peer after error" default:"false"`
50
- PreferOlderRoutes * bool `yaml:"prefer-older-routes" description:"Prefer older routes instead of comparing router IDs (RFC 5004)" default:"false"`
16
+ ASN * int `yaml:"asn" description:"Local ASN" validate:"required" default:"0"`
17
+ NeighborIPs * []string `yaml:"neighbors" description:"List of neighbor IPs" validate:"required,ip" default:"-"`
18
+ Prepends * int `yaml:"prepends" description:"Number of times to prepend local AS on export" default:"0"`
19
+ PrependPath * []uint32 `yaml:"prepend-path" description:"List of ASNs to prepend" default:"-"`
20
+ ClearPath * bool `yaml:"clear-path" description:"Remove all ASNs from path (before prepends and prepend-path)" default:"false"`
21
+ LocalPref * int `yaml:"local-pref" description:"BGP local preference" default:"100"`
22
+ SetLocalPref * bool `yaml:"set-local-pref" description:"Should an explicit local pref be set?" default:"true"`
23
+ Multihop * bool `yaml:"multihop" description:"Should BGP multihop be enabled? (255 max hops)" default:"false"`
24
+ Listen4 * string `yaml:"listen4" description:"IPv4 BGP listen address" default:"-"`
25
+ Listen6 * string `yaml:"listen6" description:"IPv6 BGP listen address" default:"-"`
26
+ LocalASN * int `yaml:"local-asn" description:"Local ASN as defined in the global ASN field" default:"-"`
27
+ LocalPort * int `yaml:"local-port" description:"Local TCP port" default:"179"`
28
+ NeighborPort * int `yaml:"neighbor-port" description:"Neighbor TCP port" default:"179"`
29
+ Passive * bool `yaml:"passive" description:"Should we listen passively?" default:"false"`
30
+ Direct * bool `yaml:"direct" description:"Specify that the neighbor is directly connected" default:"false"`
31
+ NextHopSelf * bool `yaml:"next-hop-self" description:"Should BGP next-hop-self be enabled?" default:"false"`
32
+ BFD * bool `yaml:"bfd" description:"Should BFD be enabled?" default:"false"`
33
+ Password * string `yaml:"password" description:"BGP MD5 password" default:"-"`
34
+ RSClient * bool `yaml:"rs-client" description:"Should this peer be a route server client?" default:"false"`
35
+ RRClient * bool `yaml:"rr-client" description:"Should this peer be a route reflector client?" default:"false"`
36
+ RemovePrivateASNs * bool `yaml:"remove-private-asns" description:"Should private ASNs be removed from path before exporting?" default:"true"`
37
+ MPUnicast46 * bool `yaml:"mp-unicast-46" description:"Should this peer be configured with multiprotocol IPv4 and IPv6 unicast?" default:"false"`
38
+ AllowLocalAS * bool `yaml:"allow-local-as" description:"Should routes originated by the local ASN be accepted?" default:"false"`
39
+ AddPathTx * bool `yaml:"add-path-tx" description:"Enable BGP additional paths on export?" default:"false"`
40
+ AddPathRx * bool `yaml:"add-path-rx" description:"Enable BGP additional paths on import?" default:"false"`
41
+ ImportNextHop * string `yaml:"import-next-hop" description:"Rewrite the BGP next hop before importing routes learned from this peer" default:"-"`
42
+ ExportNextHop * string `yaml:"export-next-hop" description:"Rewrite the BGP next hop before announcing routes to this peer" default:"-"`
43
+ Confederation * int `yaml:"confederation" description:"BGP confederation (RFC 5065)" default:"-"`
44
+ ConfederationMember * bool `yaml:"confederation-member" description:"Should this peer be a member of the local confederation?" default:"false"`
45
+ TTLSecurity * bool `yaml:"ttl-security" description:"RFC 5082 Generalized TTL Security Mechanism" default:"false"`
46
+ InterpretCommunities * bool `yaml:"interpret-communities" description:"Should well-known BGP communities be interpreted by their intended action?" default:"true"`
47
+ DefaultLocalPref * int `yaml:"default-local-pref" description:"Default value for local preference" default:"-"`
48
+ AdvertiseHostname * bool `yaml:"advertise-hostname" description:"Advertise hostname capability" default:"false"`
49
+ DisableAfterError * bool `yaml:"disable-after-error" description:"Disable peer after error" default:"false"`
50
+ PreferOlderRoutes * bool `yaml:"prefer-older-routes" description:"Prefer older routes instead of comparing router IDs (RFC 5004)" default:"false"`
51
+ IRRAcceptChildPrefixes * bool `yaml:"irr-accept-child-prefixes" description:"Accept prefixes up to /24 and /48 from covering parent IRR objects" default:"false"`
51
52
52
53
ImportCommunities * []string `yaml:"add-on-import" description:"List of communities to add to all imported routes" default:"-"`
53
54
ExportCommunities * []string `yaml:"add-on-export" description:"List of communities to add to all exported routes" default:"-"`
0 commit comments