]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Refactoring to adhere to coding convention
authorrajeev <rajeev.grover@hp.com>
Wed, 25 Feb 2015 18:45:11 +0000 (13:45 -0500)
committerAdolfo Duarte <adolfo.duarte@hp.com>
Sat, 25 Apr 2015 10:48:09 +0000 (03:48 -0700)
By convention, internal properties of the DvrRouter class
are initialized to None in the constructor. This patch
initializes the fip_ns property to None in order to adhere
to those guidelines

Change-Id: Ic135102a4c9372fcbbdba261f906b594e247d451

neutron/agent/l3/dvr_router.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d7fbbea..dfd9cf2
@@ -46,6 +46,7 @@ class DvrRouter(router.RouterInfo):
         self.rtr_fip_subnet = None
         self.dist_fip_count = None
         self.snat_namespace = None
+        self.fip_ns = None
 
     def get_floating_ips(self):
         """Filter Floating IPs to be hosted on this agent."""