]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
linuxbridge-agent: make vxlan unicast check more efficent
authorDarragh O'Reilly <darragh.oreilly@hp.com>
Mon, 17 Nov 2014 10:20:58 +0000 (10:20 +0000)
committerDave Walker <email@daviey.com>
Tue, 25 Nov 2014 14:55:47 +0000 (14:55 +0000)
commit56b0029014ff7e844c2fde45f7b52b7f115757e8
tree050254870281b03e25b6a95067221effd072653b
parent463eb73e2a99ad1af2c1f8bba466654b6468af5b
linuxbridge-agent: make vxlan unicast check more efficent

A list with the full range of vxlan VNIs (1 to 2**24) was using
over 300MB of memory. This patch uses xrange instead of range.

Closes-Bug: #1393362
Change-Id: I21ccab758e7911712690fd5e732f64361e809264
(cherry picked from commit 0bf69ad80fb77773e767e116357cf6e1666b3f5d)
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py