← Back to team overview

kernel-packages team mailing list archive

[Bug 1540586] [NEW] Hyper-V] Netmask value is not parsed by hv_set_ifconfig - IP injection

 

Public bug reported:

This bug is a continuation to bug ID 1506521 - the refreshed
hv_set_ifconfig script in Python3.

On a Wily system with the new script, doing an IP injection does change the IP on the VM, however the netmask value is not parsed and gets ignored.
It gets set to a default of 255.0.0.0.

Kernel: 4.2.0-23-generic

Generated ifcfg-eth0 file:
/var/lib/hyperv/ifcfg-eth0

Sample contents:
HWADDR=00:15:5D:XX:XX:XX
DEVICE=eth0
BOOTPROTO=none
IPADDR0=10.123.120.12
NETMASK0=255.255.254.0
GATEWAY=10.123.119.1
DNS1=anything

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: hyper-v

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1540586

Title:
  Hyper-V] Netmask value is not parsed by hv_set_ifconfig - IP injection

Status in linux package in Ubuntu:
  New

Bug description:
  This bug is a continuation to bug ID 1506521 - the refreshed
  hv_set_ifconfig script in Python3.

  On a Wily system with the new script, doing an IP injection does change the IP on the VM, however the netmask value is not parsed and gets ignored.
  It gets set to a default of 255.0.0.0.

  Kernel: 4.2.0-23-generic

  Generated ifcfg-eth0 file:
  /var/lib/hyperv/ifcfg-eth0

  Sample contents:
  HWADDR=00:15:5D:XX:XX:XX
  DEVICE=eth0
  BOOTPROTO=none
  IPADDR0=10.123.120.12
  NETMASK0=255.255.254.0
  GATEWAY=10.123.119.1
  DNS1=anything

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1540586/+subscriptions


Follow ups