cli: allow setting multiple IPs in bond 'arp_ip_target' option
authorBeniamino Galvani <bgalvani@redhat.com>
Wed, 16 Mar 2016 09:20:45 +0000 (10:20 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Tue, 29 Mar 2016 16:10:05 +0000 (18:10 +0200)
commita9241773d7e73152f6360663aef07b8db3393924
tree9be6c445daa0350494e67256d5e18e59d98176d7
parent5f7d7ee497009f70c0593bf4d926a10275b00170
cli: allow setting multiple IPs in bond 'arp_ip_target' option

The bond 'arp_ip_target' option contains a list of comma-separated IP
addresses; but comma is also used to separate options and so at the
moment it is not possible to specify multiple IPs as the command

 $ nmcli c m b1 bond.options \
   mode=0,arp_interval=1,arp_ip_target=1.1.1.1,2.2.2.2

interprets 2.2.2.2 as the next option.

Allows spaces to be used as separators for the IPs of the
'arp_ip_target':

 $ nmcli c m b1 bond.options \
   "mode=0,arp_interval=1,arp_ip_target=1.1.1.1 2.2.2.2"
clients/cli/settings.c