Signed-off-by: itoyuichi <[email protected]>
---
 ryu/lib/lacplib.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/lib/lacplib.py b/ryu/lib/lacplib.py
index 12bf419..a5a9b0e 100644
--- a/ryu/lib/lacplib.py
+++ b/ryu/lib/lacplib.py
@@ -63,7 +63,7 @@ class LacpLib(app_manager.RyuApp):
         """initialization."""
         super(LacpLib, self).__init__()
         self.name = 'lacplib'
-        self.bonds = []
+        self._bonds = []
         self._add_flow = {
             ofproto_v1_0.OFP_VERSION: self._add_flow_v1_0,
             ofproto_v1_2.OFP_VERSION: self._add_flow_v1_2,
@@ -93,7 +93,7 @@ class LacpLib(app_manager.RyuApp):
             ifs[port] = {'enabled': False, 'timeout': 0}
         bond = {}
         bond[dpid] = ifs
-        self.bonds.append(bond)
+        self._bonds.append(bond)

     #-------------------------------------------------------------------
     # PUBLIC METHODS ( EVENT HANDLERS )
@@ -276,7 +276,7 @@ class LacpLib(app_manager.RyuApp):
     def _get_slave(self, dpid, port):
         """get slave i/f at some port of some datapath."""
         result = None
-        for bond in self.bonds:
+        for bond in self._bonds:
             if dpid in bond:
                 if port in bond[dpid]:
                     result = bond[dpid][port]
-- 
1.7.10.4


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to