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

frrender: T6746: runtime improvements #4243

Merged
merged 5 commits into from
Dec 19, 2024
Merged

frrender: T6746: runtime improvements #4243

merged 5 commits into from
Dec 19, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Dec 18, 2024

Change Summary

Previously the FRR configuration was rendered via Jinja2 on every call to get_frrendet_dict() - but it was used/applied only once.
We save the CPU cycles and render the FRR configuration only once prior to applying it in FRR.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

FRR

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

c-po added 3 commits December 18, 2024 19:15
Always evaluate if the debug file exsits and not once during module init. Thus
we can always eanble/disable FRR command debugging during runtime even under
vyos-configd.
Previously the FRR configuration was rendered via Jinja2 on every call to
get_frrendet_dict() - but it was used/applied only once.

We save the CPU cycles and render the FRR configuration only once prior to
applying it in FRR.
Copy link

github-actions bot commented Dec 18, 2024


PR title does not match the required format

@c-po c-po marked this pull request as draft December 18, 2024 18:38
…module

Keep all FRRender stuff in one place.
@c-po c-po marked this pull request as ready for review December 18, 2024 21:41
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 342
    if not self.iftype:
           ^^^^^^^^^^^
AttributeError: 'Interface' object has no attribute 'iftype'
@c-po c-po merged commit ccb260c into vyos:current Dec 19, 2024
6 of 8 checks passed
@c-po c-po deleted the frr-10 branch December 19, 2024 15:59
Copy link

CI integration ❌ failed!

Details

CI logs

  • CLI Smoketests (no interfaces) ❌ failed
  • CLI Smoketests (interfaces only) ❌ failed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants