Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,14 @@ Accept prefixes up to /24 and /48 from covering parent IRR objects
|------|---------|------------|
| bool | false | |

### `gateway`

The mode in which the gateway is defined for received routes (direct|recursive).

| Type | Default | Validation |
|------|---------|------------|
| string | | |

### `add-on-import`

List of communities to add to all imported routes
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ type Peer struct {
DisableAfterError *bool `yaml:"disable-after-error" description:"Disable peer after error" default:"false"`
PreferOlderRoutes *bool `yaml:"prefer-older-routes" description:"Prefer older routes instead of comparing router IDs (RFC 5004)" default:"false"`
IRRAcceptChildPrefixes *bool `yaml:"irr-accept-child-prefixes" description:"Accept prefixes up to /24 and /48 from covering parent IRR objects" default:"false"`
Gateway *string `yaml:"gateway" description:"The mode in which the gateway is defined for received routes (direct|recursive)." default:"-"`

ImportCommunities *[]string `yaml:"add-on-import" description:"List of communities to add to all imported routes" default:"-"`
ExportCommunities *[]string `yaml:"add-on-export" description:"List of communities to add to all exported routes" default:"-"`
Expand Down
1 change: 1 addition & 0 deletions pkg/embed/templates/peer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
{{ if BoolDeref $peer.AddPathRx }}add paths rx;{{ end }}
{{ if BoolDeref $peer.AdvertiseHostname }}advertise hostname on;{{ end }}
{{ if BoolDeref $peer.DisableAfterError }}disable after error on;{{ end }}
{{ if StrDeref $peer.Gateway }}gateway "{{ StrDeref $peer.Gateway }}";{{ end }}
import filter {
{{ if $global.NoAccept }}reject; # no-accept: true{{ end }}
{{ if (not (BoolDeref $peer.Import)) }}reject; # import: false{{ end }}
Expand Down