-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tools: Add option to frr-reload to specify alternate logfile #15471
base: master
Are you sure you want to change the base?
Conversation
ec6d877
to
3753bbe
Compare
@@ -1921,11 +1927,11 @@ def compare_context_objects(newconf, running): | |||
) | |||
|
|||
elif args.reload: | |||
if not os.path.isdir("/var/log/frr/"): | |||
os.makedirs("/var/log/frr/", mode=0o0755) | |||
if not os.path.isdir(os.path.dirname(args.logfile)): |
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.
Please update the comment at the top of the block to read
# For --reload log to --logfile (default: "/var/log/frr/frr-reload.log")
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
Adding option --logfile to specify a different logfile instead of the default /var/log/frr/frr-reload.log Signed-off-by: Martin Winter <[email protected]>
Signed-off-by: Martin Winter <[email protected]>
3753bbe
to
81719d8
Compare
ci:retry |
This PR is stale because it has been open 180 days with no activity. Comment or remove the |
@mwinter-osr Did we still want to get this in? Also as a further improvement should the path for the default log file use some value from |
Adding option --logfile to specify a different logfile instead of the default /var/log/frr/frr-reload.log
This solves the issue with multiple FRR instances running in different network namespaces to use different
logfiles
Signed-off-by: Martin Winter [email protected]