-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
IPC: daemon: add batch-mode support #185
Conversation
625a0d7
to
20e7562
Compare
Before you force-pushed the follow-up changes, the tests passed. Now they no longer pass, you'll have to look into why your PR introduces a regression. Other than that it looks good in general. Some minor coding style issues, but those I can fix up myself later. Only caveat I have is that I'd like |
5c51eb7
to
3ffc919
Compare
Before force-push PR wasn't quite complete and didn't support receiving arbitrary number of commands. |
By the way, locally test
However, after enzo@scuderia-pc:~$ grep ip_gre /proc/modules
ip_gre 28672 0 - Live 0x0000000000000000
ip_tunnel 32768 1 ip_gre, Live 0x0000000000000000
gre 16384 1 ip_gre, Live 0x0000000000000000
enzo@scuderia-pc:~$ lsmod | grep gre
ip_gre 28672 0
ip_tunnel 32768 1 ip_gre
gre 16384 1 ip_gre |
There's some memory corruption being introduced. See near the end of the last run:
Re: GRE. Yeah, I've set up my tests using |
In last force-push I got rid of However locally I have:enzo@scuderia-pc:/media/enzo/Data/work/workspace/smcroute$ make check
Making check in man
make[1]: Entering directory '/media/enzo/Data/work/workspace/smcroute/man'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/media/enzo/Data/work/workspace/smcroute/man'
Making check in src
make[1]: Entering directory '/media/enzo/Data/work/workspace/smcroute/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/media/enzo/Data/work/workspace/smcroute/src'
Making check in test
make[1]: Entering directory '/media/enzo/Data/work/workspace/smcroute/test'
make check-TESTS
make[2]: Entering directory '/media/enzo/Data/work/workspace/smcroute/test'
make[3]: Entering directory '/media/enzo/Data/work/workspace/smcroute/test'
PASS: expire.sh
PASS: adv.sh
PASS: basic.sh
PASS: bridge.sh
PASS: dyn.sh
PASS: gre.sh
PASS: include.sh
PASS: ipv6.sh
PASS: isolated.sh
PASS: join.sh
PASS: joinlen.sh
PASS: lost.sh
PASS: mem.sh
PASS: mrcache.sh
PASS: mrcache6.sh
PASS: mrdisc.sh
PASS: multi.sh
PASS: poison.sh
PASS: reload.sh
PASS: reload6.sh
PASS: vlan.sh
PASS: vrfy.sh
============================================================================
Testsuite summary for SMCRoute 2.5.5
============================================================================
# TOTAL: 22
# PASS: 22
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/media/enzo/Data/work/workspace/smcroute/test'
make[2]: Leaving directory '/media/enzo/Data/work/workspace/smcroute/test'
make[1]: Leaving directory '/media/enzo/Data/work/workspace/smcroute/test'
make[1]: Entering directory '/media/enzo/Data/work/workspace/smcroute'
make[1]: Leaving directory '/media/enzo/Data/work/workspace/smcroute' |
Add support to read multiple commands from client and invoke them. Example of possible (but not yet implemented) usage of smcroutectl: smcroutectl --batch - << EOF join eth0 225.1.2.3 add eth0 192.168.1.42 225.1.2.3 eth1 eth2 rem eth1 225.3.4.5 eth3 leave eth1 225.3.4.5 EOF Signed-off-by: Alexey Smirnov <s.alexey@gmail.com>
Should be good now! |
Looks much better, thank you for hanging in there! 😃👍 I'll do a deep review of the changes probably sometime tomorrow morning (CET). But I don't expect anything major to pop up at this stage. |
Merged this morning. Now, before the next release it'd be great to have support for
And a tiny little test to verify the same. |
Hop to get to it soon! |
Cool thanks! I created a couple of issues to track it so we don't forget. |
Add support to read multiple commands from client and invoke them. Example of possible (but not yet implemented) usage of smcroutectl:
smcroutectl --batch - << EOF
join eth0 225.1.2.3
add eth0 192.168.1.42 225.1.2.3 eth1 eth2
rem eth1 225.3.4.5 eth3
leave eth1 225.3.4.5
EOF
Signed-off-by: Alexey Smirnov s.alexey@gmail.com