]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Defer segment lookup in NetworkContext object
authorKevin Benton <blak111@gmail.com>
Thu, 4 Jun 2015 02:03:29 +0000 (19:03 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Tue, 9 Jun 2015 04:47:07 +0000 (04:47 +0000)
commite61865807c4c8ff959a7746fe3e17f1ae574c9d0
tree471bdff40712875c773f8e860d9441c5013cab63
parente95510f8d123e0428baa5d7b043d6542120d89f9
Defer segment lookup in NetworkContext object

Avoid call to get network segments for network context objects until
a caller actually tries to lookup the segments. This optimizes cases
where the user of a port context never looks at the segments of the
associated network context (e.g. update_port_status).

Closes-Bug: #1463254
Change-Id: I7e95f81d9a3ef26ccdb18c6bfdf9adc29523aa79
neutron/plugins/ml2/driver_context.py
neutron/tests/unit/plugins/ml2/test_driver_context.py