Eliminate NeutronvpnUtils.isNetworkOfType() 90/85490/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 1 Nov 2019 13:57:03 +0000 (14:57 +0100)
committerFaseela K <k.faseela@gmail.com>
Mon, 4 Nov 2019 08:48:19 +0000 (08:48 +0000)
commit76e6ea5ab6d8c99be447c1f73416c90f37299c6f
tree056d841213f36e05e7efd754b7797ebeed08b3e0
parentacb96860f461827af712979c3a0c3f442075078d
Eliminate NeutronvpnUtils.isNetworkOfType()

This method is used from only a single caller, which is checking
the same augmentation. Inline the check into the caller, making
sure we look up the augmentation only once -- thus speeding up
the NetworkTypeFlat case.

Change-Id: Ia3e767b8582af6ee61ed84ed13d0d8627a0eaa69
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnUtils.java