Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Sep 13, 2023

Conversation

fedepaol
Copy link
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
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
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
Copy link
Member

@oribon oribon left a comment

Choose a reason for hiding this comment

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

lgtm

ipv6 prefix-list {{$plistName}} seq {{counter $plistName}} deny any
{{- end }}

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

@oribon oribon Sep 12, 2023

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
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
25 checks passed
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.

None yet

2 participants