)]}'
{"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4245e35baf380e58130ad5ae3f4cb3d232da0078","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            \u0027--dhcp-optsfile\u003d%s\u0027 % self.get_conf_file_name(\u0027opts\u0027),"},{"line_number":333,"context_line":"            \u0027--dhcp-leasefile\u003d%s\u0027 % self.get_conf_file_name(\u0027leases\u0027),"},{"line_number":334,"context_line":"            \u0027--dhcp-match\u003dset:ipxe,175\u0027,"},{"line_number":335,"context_line":"            \u0027--ra-param\u003d%s,0,0\u0027 % self.interface_name,"},{"line_number":336,"context_line":"        ]"},{"line_number":337,"context_line":"        if self.device_manager.driver.bridged:"},{"line_number":338,"context_line":"            cmd +\u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5da102_4badde86","line":335,"updated":"2016-11-03 02:43:04.000000000","message":"So I guess the VM see\u0027s two RAs when not isolated.\n\nBut I think we add an ip6tables rule to allow the router to send this and get through, so we\u0027d need to add one for the dhcp namespace IPv6 address as well, right?","commit_id":"139a988e8d5ca6e40f5b99360dc26425acd9ca15"},{"author":{"_account_id":10558,"name":"Dustin Lundquist","email":"dustin@null-ptr.net","username":"dlundquist"},"change_message_id":"10612692538980d1c966e87dc275d37a2aff5f5c","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            \u0027--dhcp-optsfile\u003d%s\u0027 % self.get_conf_file_name(\u0027opts\u0027),"},{"line_number":333,"context_line":"            \u0027--dhcp-leasefile\u003d%s\u0027 % self.get_conf_file_name(\u0027leases\u0027),"},{"line_number":334,"context_line":"            \u0027--dhcp-match\u003dset:ipxe,175\u0027,"},{"line_number":335,"context_line":"            \u0027--ra-param\u003d%s,0,0\u0027 % self.interface_name,"},{"line_number":336,"context_line":"        ]"},{"line_number":337,"context_line":"        if self.device_manager.driver.bridged:"},{"line_number":338,"context_line":"            cmd +\u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5da102_d37b47f3","line":335,"in_reply_to":"ba5da102_4badde86","updated":"2016-11-03 15:31:20.000000000","message":"Yes, in the case of a non-isolated network instances will receive RA\u0027s from both the DHCP namespace and the router. This is okay, since the router lifetime of the DHCP namespace is zero, it will not be used as a next hop. I can look at optimizing this with a similar test to should_enable_metadata(), but this would require restarting dnsmasq when when a router_interface is added or removed from the network and I would like to leave this optimization for a follow on commit.\n\nWe only validate the source address of DHCP responses, not router advertisements in the security group firewall driver:\n\n# sudo ip6tables -L neutron-linuxbri-i568aaab0-2 -n -v\nChain neutron-linuxbri-i568aaab0-2 (1 references)\n pkts bytes target     prot opt in     out     source               destination         \n    0     0 RETURN     icmpv6    *      *       ::/0                 ::/0                 ipv6-icmptype 130\n    2   208 RETURN     icmpv6    *      *       ::/0                 ::/0                 ipv6-icmptype 134\n    0     0 RETURN     icmpv6    *      *       ::/0                 ::/0                 ipv6-icmptype 135\n    0     0 RETURN     icmpv6    *      *       ::/0                 ::/0                 ipv6-icmptype 136\n    0     0 RETURN     all      *      *       ::/0                 ::/0                 state RELATED,ESTABLISHED /* Direct packets associated with a known session to the RETURN chain. */\n    0     0 RETURN     icmpv6    *      *       fe80::f816:3eff:fec5:5a33  ::/0                 ipv6-icmptype 134\n    0     0 RETURN     udp      *      *       fe80::f816:3eff:fed3:8404  ::/0                 udp spt:547 udp dpt:546\n    0     0 RETURN     all      *      *       ::/0                 ::/0                 match-set NIPv64dfe8168-e0d6-4291-b6f7- src\n    0     0 DROP       all      *      *       ::/0                 ::/0                 state INVALID /* Drop packets that appear related to an existing connection (e.g. TCP ACK/FIN) but do not have an entry in conntrack. */\n    0     0 neutron-linuxbri-sg-fallback  all      *      *       ::/0                 ::/0                 /* Send unmatched traffic to the fallback chain. */","commit_id":"139a988e8d5ca6e40f5b99360dc26425acd9ca15"},{"author":{"_account_id":8726,"name":"Victor Morales","email":"chipahuac@hotmail.com","username":"electrocucaracha"},"change_message_id":"e9c1f3f5e3206192afbf55d2cdd9020de93baa29","unresolved":false,"context_lines":[{"line_number":333,"context_line":"            \u0027--dhcp-leasefile\u003d%s\u0027 % self.get_conf_file_name(\u0027leases\u0027),"},{"line_number":334,"context_line":"            \u0027--dhcp-match\u003dset:ipxe,175\u0027,"},{"line_number":335,"context_line":"            \u0027--enable-ra\u0027,"},{"line_number":336,"context_line":"            \u0027--ra-param\u003d%s,0,0\u0027 % self.interface_name,"},{"line_number":337,"context_line":"        ]"},{"line_number":338,"context_line":"        if self.device_manager.driver.bridged:"},{"line_number":339,"context_line":"            cmd +\u003d ["}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_84e53539","line":336,"range":{"start_line":336,"start_character":13,"end_line":336,"end_character":23},"updated":"2016-11-18 04:45:47.000000000","message":"According to the release notes[1], --ra-param was added in version 2.67, which is the minimum version supported[2]\n\n[1] http://www.thekelleys.org.uk/dnsmasq/CHANGELOG\n[2] https://github.com/openstack/neutron/blob/master/neutron/cmd/sanity/checks.py#L44","commit_id":"11c3f0cafd62f9f9b46fd494f9cc6c372f77b1c9"}],"neutron/tests/unit/agent/linux/test_dhcp.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"31f65c99166c5a6a4bc57faca515a93f311e3b17","unresolved":false,"context_lines":[{"line_number":1105,"context_line":"                        i, s.cidr.split(\u0027/\u0027)[0], s.cidr.split(\u0027/\u0027)[1],"},{"line_number":1106,"context_line":"                        lease_duration, seconds)])"},{"line_number":1107,"context_line":"                elif s.ipv6_address_mode \u003d\u003d constants.IPV6_SLAAC:"},{"line_number":1108,"context_line":"                    expected.extend([prefix6slaac % ("},{"line_number":1109,"context_line":"                        i, s.cidr.split(\u0027/\u0027)[0], s.cidr.split(\u0027/\u0027)[1],"},{"line_number":1110,"context_line":"                        lease_duration, seconds)])"},{"line_number":1111,"context_line":"                possible_leases +\u003d netaddr.IPNetwork(s.cidr).size"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a77a97e_3eb89be5","line":1108,"updated":"2016-11-21 15:01:14.000000000","message":"This extend call and the one above are the same other than the base string. Can you just make the conditional decide which string var to use (prefix6slaac vs prefix6) and then pass that into a single extend call?","commit_id":"11c3f0cafd62f9f9b46fd494f9cc6c372f77b1c9"}]}
