-
Notifications
You must be signed in to change notification settings - Fork 345
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
nhrp: T2326: NHRP migration to FRR #4217
base: current
Are you sure you want to change the base?
Conversation
👍 |
✅ No issues found in unused-imports check.. Please refer the workflow run |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
a1cf41c
to
9d69ee9
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
9d69ee9
to
957adaa
Compare
82c7537
to
58f3339
Compare
204e822
to
8a80ad9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should also have PR to remove the package build: https://github.com/vyos/vyos-build/tree/current/scripts/package-build/opennhrp
@@ -147,6 +148,43 @@ def dict_helper_pim_defaults(pim, path): | |||
pim = config_dict_merge(default_values, pim) | |||
return pim | |||
|
|||
def dict_helper_nhrp_defaults(nhrp): | |||
nflog_redirect = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are those magic numbers? Please add a proper comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added comments about these two numbers.
https://github.com/vyos/vyos-1x/pull/4217/files#diff-5fa707da9950d5de7cf947091ea150f12fd562a821f70857f1733ef1bcab9091R152-R155
More about NFLOG in FRR is described in FRR documentation
https://docs.frrouting.org/en/latest/nhrpd.html#hub-functionality
https://docs.frrouting.org/en/latest/nhrpd.html#multicast-functionality
python/vyos/frrender.py
Outdated
no_tag_node_value_mangle=True) | ||
|
||
for name, profile_conf in profile.items(): | ||
if 'disable' not in profile_conf: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can unindent one entire block by using
if 'disable' not in profile_conf: | |
if 'disable' in profile_conf: | |
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
python/vyos/frrender.py
Outdated
@@ -378,6 +428,8 @@ def dict_helper_pim_defaults(pim, path): | |||
else: | |||
dict.update({'static' : {'pppoe' : tmp}}) | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are those whitespace lines needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
8a80ad9
to
156330b
Compare
NHRP migration to FRR
156330b
to
5e8307b
Compare
CI integration ❌ failed! Details
|
NHRP migration to FRR
Change Summary
Types of changes
Related Task(s)
https://vyos.dev/T2326
Related PR(s)
Component(s) name
nhrp
Proposed changes
Replaced the old package opnnhrp with FRR nhrpd.
Advantages:
Restrictions:
Changes:
Configuration mode:
All commands were remade according to FRR.
Operational mode:
All commands were remade according to FRR.
How to test
Smoketest result
Checklist: