-
Notifications
You must be signed in to change notification settings - Fork 670
Allow multiple CIDR arguments to run/start/attach/detach #498
Conversation
docs need updating |
with_container_netns $CONTAINER attach $CIDR >/dev/null | ||
tell_dns PUT $CONTAINER $CIDR | ||
with_container_netns $CONTAINER attach $CIDRS >/dev/null | ||
for CIDR in $CIDRS; do |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Updated documentation and factored out some common parts. Unfortunately the CIDR collection loop is still resisting (see my comment elsewhere) - remaining avenues are the CPS transform that @dpw mentioned or a function that exports two global variables:
Thoughts @rade? |
host1# weave run 10.2.2.1/24 10.2.3.1/24 -t -i ubuntu | ||
|
||
In this case, all of the addresses are added to the container's | ||
weave interface before it is brought up. |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Two globals is fine. No need for the 'GLOBAL_' prefix; all our vars are global. |
Docs updated, CIDR parsing refactored. |
Any reason not do do 'expose' and 'hide' too? |
|
Docs updated to use consistent subnets in examples. |
I'm going to have a stab at rebasing this to clean up the history - please hold off merging for now. |
I really don't care. But if you must... |
Allow multiple CIDR arguments to run/start/attach/detach/expose/hide Closes #467.
Addresses #467.