New Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

The config should be provided in this form:

iface eth0 inet static
  address 10.0.1.8
  netmask 255.255.255.0
  broadcast 10.0.1.255
  gateway 10.0.1.1
  dns-nameservers 8.8.8.8
  #here must be an empty line

The differences between your config and the one I have given are: 1. the order: netmask before broadcast 2. "dns-nameservers" instead of "dns-nameserver" 3. Due to a quirk on Python 2.7.3, there needs to be a newline after the dns-nameservers (\n). On 2.7.6, it works with/without a newline.

This way, if the config files are mapped correctly, the regexp should work,

I hope it helps.

Hello,

The config should be provided in this form:

iface eth0 inet static
  address 10.0.1.8
  netmask 255.255.255.0
  broadcast 10.0.1.255
  gateway 10.0.1.1
  dns-nameservers 8.8.8.8
  #here must be an empty line

The differences between your config and the one I have given are: 1. the are:

  1. The order: netmask before broadcast 2. broadcast
  2. "dns-nameservers" instead of "dns-nameserver" 3. of "dns-nameserver"
  3. Due to a quirk on Python 2.7.3, there needs to be a newline after the dns-nameservers (\n). On On 2.7.6, it works with/without a newline.

This way, if the config files are mapped correctly, the regexp should work,

I hope it helps.