[lxc-users] Setting gateway via python-lxc

Serge Hallyn serge.hallyn at ubuntu.com
Mon Jan 5 16:54:59 UTC 2015


Quoting BB (eeg5auquaephoo5j at gmail.com):
> Hallo again,
> 
> I just noticed that even though I set:
>      >>> container.network[0].ipv4 = '10.0.10.3/24'
> 
>      >>> container.network[0].ipv4
>      ['10.0.10.3']
>      >>> container.save_config()
> 
> The container's config contains:
>      lxc.network.ipv4 = 10.0.10.3/8
> 
> I also tried:
>     >>> container.set_config_item('lxc.network.0.ipv4', '10.0.10.3/24')
>     False

For me it gives me 

lxc.network.0.ipv4 = 10.0.10.3/24

What version are you using?


More information about the lxc-users mailing list