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

Add path flag to loxicmd save to non default /etc/loxilb directory #706

Open
vincentmli opened this issue Jun 21, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@vincentmli
Copy link

Is your feature request related to a problem? Please describe.

BPFire UI is able to configure loxilb lb, fw, ip. but unable to save the configuration, and if loxilb restart, the configuration configured from UI is lost.

from BPFire web UI to invoke loxicmd save -a, loxicmd save -a failed to save to /etc/loxilb because UI does not have permission to write to /etc/loxilb directory.

Describe the solution you'd like

add path flag to loxicmd save to save to non default /etc/loxilb directory so other non root users like UI user could execute loxicmd save -a -p /var/ipfire/loxilb to save the config to /var/ipfire/loxilb directory. it would be nice if loxilb restart could restore the config from non default /etc/loxilb directory also like /var/ipfire/loxilb

Describe alternatives you've considered

Additional context

@inhogog2
Copy link
Collaborator

Hi @vincentmli,

This issue has been updated.

You can specify the saving path using the -c option in the loxicmd, and to load it from that path, you will use the --config-path option when running loxilb. Please check it out.

loxicmd save -a -c **/root/**
IP Configuration saved in ipconfig_2024-06-28_06:43:08.txt
/usr/bin/bash -c cp -R lbconfig_2024-06-28_06:43:08.txt /root/lbconfig.txt
.....
./loxilb --config-path **/root/**

@vincentmli
Copy link
Author

@inhogog2 thanks, I will test in BPFire and let you know the result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants