'ips' field in Subnet object [1] is a legacy field from Nova networks.
This is still used in the virt Firewall, but is not used in os-vif
project. Furthemore, the VIF object used by Nova to extract the port
IPs [2] is not provided by os-vif.
The reason to move this field from Subnet to VIF is because the IP list
should belong to the VIF object, which is linked with the port. The
Subnet object contains the CIDR of the subnetwork, but shouldn't store
the IPs given to an specific port.
Reviewed: https:/ /review. openstack. org/508498 /git.openstack. org/cgit/ openstack/ os-vif/ commit/ ?id=a441c08f264 41b3eb2b5c49259 d0cbb6b5345bcc
Committed: https:/
Submitter: Jenkins
Branch: master
commit a441c08f26441b3 eb2b5c49259d0cb b6b5345bcc
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Sep 29 12:19:16 2017 +0100
Move 'ips' field from Subnet object to VIF object
'ips' field in Subnet object [1] is a legacy field from Nova networks.
This is still used in the virt Firewall, but is not used in os-vif
project. Furthemore, the VIF object used by Nova to extract the port
IPs [2] is not provided by os-vif.
The reason to move this field from Subnet to VIF is because the IP list
should belong to the VIF object, which is linked with the port. The
Subnet object contains the CIDR of the subnetwork, but shouldn't store
the IPs given to an specific port.
[1] https:/ /github. com/openstack/ os-vif/ blob/1. 7.0/os_ vif/objects/ subnet. py#L30 /github. com/openstack/ nova/blob/ 16.0.1/ nova/virt/ firewall. py#L180- L181
[2] https:/
Change-Id: I99a4df96ee8e72 915bdf9fc1327b9 575dfa94586
Closes-Bug: #1720175