← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1687485] [NEW] sysconfig route object reference removed class attribute

 

Public bug reported:

In bug https://bugs.launchpad.net/cloud-init/+bug/1669504

cloud-init sysconfig rendering was updated to handle v4 and v6 default routes.
In that change, there's  a remnant of the previous implementation.

% grep -n has_set_default cloudinit/net/sysconfig.py 
91:        self.has_set_default_ipv4 = False
92:        self.has_set_default_ipv6 = False
100:        r.has_set_default_ipv4 = self.has_set_default_ipv4
101:        r.has_set_default_ipv6 = self.has_set_default_ipv6
256:                         route_cfg.has_set_default_ipv4) or
258:                         route_cfg.has_set_default_ipv6)
274:                route_cfg.has_set_default = True


Note that last route_cfg.has_set_default,  which is no longer present in the Route class

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1687485

Title:
  sysconfig route object reference removed class attribute

Status in cloud-init:
  New

Bug description:
  In bug https://bugs.launchpad.net/cloud-init/+bug/1669504

  cloud-init sysconfig rendering was updated to handle v4 and v6 default routes.
  In that change, there's  a remnant of the previous implementation.

  % grep -n has_set_default cloudinit/net/sysconfig.py 
  91:        self.has_set_default_ipv4 = False
  92:        self.has_set_default_ipv6 = False
  100:        r.has_set_default_ipv4 = self.has_set_default_ipv4
  101:        r.has_set_default_ipv6 = self.has_set_default_ipv6
  256:                         route_cfg.has_set_default_ipv4) or
  258:                         route_cfg.has_set_default_ipv6)
  274:                route_cfg.has_set_default = True

  
  Note that last route_cfg.has_set_default,  which is no longer present in the Route class

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1687485/+subscriptions


Follow ups