Reviewed:  https://review.opendev.org/699465
Committed: 
https://git.openstack.org/cgit/openstack/neutron/commit/?id=0b3cff33c1904b82146701b521749cff01f44e9a
Submitter: Zuul
Branch:    master

commit 0b3cff33c1904b82146701b521749cff01f44e9a
Author: Rodolfo Alonso Hernandez <[email protected]>
Date:   Tue Dec 17 16:50:36 2019 +0000

    Subnet gateway should be a valid IP
    
    When a subnet is created and allocated, the gateway IP is created
    based on the subnet CIDR. In case of IPv6 prefix delegation, this
    CIDR is a temporary one. In this case the gateway IP cannot be
    assigned yet and the value stored in the DB should be "None".
    
    IpamBackendMixin._gateway_ip_str must read properly the IP version
    stored in the "subnet" variable, under the key "ip_version"
    instead of "version".
    
    Closes-Bug: #1856726
    Closes-Bug: #1856675
    
    Change-Id: I9313c880cc458f08dc3a1b0ff13187b764ba7042


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  IpamBackendMixin._gateway_ip_str is not reading correctly the subnet
  IP version

Status in neutron:
  Fix Released

Bug description:
  The "subnet" parameter passed to this function comes from the API
  request to the plugin to create a subnet. The "subnet" parameter is a
  dictionary based on the DB model. In this DB model, the IP version
  parameter is called "ip_version", instead of "version" [1].

  [1]
  
https://github.com/openstack/neutron/blob/master/neutron/db/ipam_backend_mixin.py#L59

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1856726/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to