@@ -94,6 +94,7 @@ type Peer struct {
9494 Template * string `yaml:"template" description:"Configuration template" default:"-"`
9595
9696 Description * string `yaml:"description" description:"Peer description" default:"-"`
97+ Comments * []string `yaml:"comments" description:"Comments in file" default:"-"`
9798 Tags * []string `yaml:"tags" description:"Peer tags" default:"-"`
9899 Disabled * bool `yaml:"disabled" description:"Should the sessions be disabled?" default:"false"`
99100
@@ -111,6 +112,7 @@ type Peer struct {
111112 LocalPref6 * int `yaml:"local-pref6" description:"IPv6 BGP local preference (overrides local-pref, not included in optimizer)" default:"-"`
112113 SetLocalPref * bool `yaml:"set-local-pref" description:"Should an explicit local pref be set?" default:"true"`
113114 Multihop * bool `yaml:"multihop" description:"Should BGP multihop be enabled? (255 max hops)" default:"false"`
115+ Interface * string `yaml:"interface" description:"Interface for link-local BGP IPv6 sessions" default:"-"`
114116 Listen4 * string `yaml:"listen4" description:"IPv4 BGP listen address" default:"-"`
115117 Listen6 * string `yaml:"listen6" description:"IPv6 BGP listen address" default:"-"`
116118 LocalASN * int `yaml:"local-asn" description:"Local ASN as defined in the global ASN field" default:"-"`
@@ -137,6 +139,7 @@ type Peer struct {
137139 TTLSecurity * bool `yaml:"ttl-security" description:"RFC 5082 Generalized TTL Security Mechanism" default:"false"`
138140 InterpretCommunities * bool `yaml:"interpret-communities" description:"Should well-known BGP communities be interpreted by their intended action?" default:"true"`
139141 DefaultLocalPref * int `yaml:"default-local-pref" description:"Default value for local preference" default:"-"`
142+ DefaultBGPMED * int `yaml:"bgp-med" description:"Value of the Multiple Exit Discriminator to be used during route selection when the MED attribute is missing." default:"0"`
140143 AdvertiseHostname * bool `yaml:"advertise-hostname" description:"Advertise hostname capability" default:"false"`
141144 DisableAfterError * bool `yaml:"disable-after-error" description:"Disable peer after error" default:"false"`
142145 PreferOlderRoutes * bool `yaml:"prefer-older-routes" description:"Prefer older routes instead of comparing router IDs (RFC 5004)" default:"false"`
@@ -348,6 +351,8 @@ type Config struct {
348351 ImportCommunities []string `yaml:"add-on-import" description:"List of communities to add to all imported routes" default:"-"`
349352 ExportCommunities []string `yaml:"add-on-export" description:"List of communities to add to all exported routes" default:"-"`
350353
354+ ShowWarningMessage bool `yaml:"show-warning-messsage" description:"Show warning message on autogenerated files" default:"true"`
355+
351356 Hostname string `yaml:"hostname" description:"Router hostname (default system hostname)" default:""`
352357
353358 ASN int `yaml:"asn" description:"Autonomous System Number" validate:"required" default:"0"`
0 commit comments