Skip to content

FRR templates: provide a seqnum for the prefix lists - #2075

Merged
fedepaol merged 1 commit into
metallb:mainfrom
fedepaol:prefixseqnum
Sep 13, 2023
Merged

FRR templates: provide a seqnum for the prefix lists#2075
fedepaol merged 1 commit into
metallb:mainfrom
fedepaol:prefixseqnum

Conversation

@fedepaol

Copy link
Copy Markdown
Member

Instead of letting frr pick the sequence number, we provide it from outside. This should make the configuration more deterministic and offload some of the logic from FRR.

Comment on lines +14 to +15
route-map 10.2.2.254-out permit 1
match ip address prefix-list 10.2.2.254-red-pl-ipv4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks out of place (shouldn't this be red-out)?

Comment on lines +26 to +29
route-map 10.4.4.255-out permit 1
match ip address prefix-list 10.4.4.255-red-pl-ipv4
route-map 10.4.4.255-red-out permit 1
match ipv6 address prefix-list 10.4.4.255-red-pl-ipv4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same?

@fedepaol
fedepaol force-pushed the prefixseqnum branch 2 times, most recently from 605c48b to 4b0a587 Compare September 12, 2023 09:43

@oribon oribon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread internal/bgp/frr/templates/filters.tmpl Outdated
ipv6 prefix-list {{$plistName}} seq {{counter $plistName}} deny any
{{- end }}

route-map {{$.neighbor.ID}}-out permit {{counter $.neighbor.Addr}}

@oribon oribon Sep 12, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

counter $.neighbor.Addr -> $.neighbor.ID

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@fedepaol
fedepaol force-pushed the prefixseqnum branch 2 times, most recently from 350e650 to 792e3c1 Compare September 12, 2023 16:58
Instead of letting frr pick the sequence number, we provide it from
outside. This should make the configuration more deterministic and
offload some of the logic from FRR.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
@fedepaol
fedepaol added this pull request to the merge queue Sep 13, 2023
Merged via the queue into metallb:main with commit ec253a4 Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants