@@ -750,7 +750,7 @@ def apply(self):
750750 'please either specify a DPID or use a '
751751 'canonical switch name such as s23.' )
752752
753-
753+
754754 results = {'externalInterfaces' :externalInterfaces ,
755755 'hostname' :self .hostnameEntry .get (),
756756 'dpid' :dpid ,
@@ -784,10 +784,10 @@ class VerticalScrolledTable(LabelFrame):
784784 * Use the 'interior' attribute to place widgets inside the scrollable frame
785785 * Construct and pack/place/grid normally
786786 * This frame only allows vertical scrolling
787-
787+
788788 """
789789 def __init__ (self , parent , rows = 2 , columns = 2 , title = None , * args , ** kw ):
790- LabelFrame .__init__ (self , parent , text = title , padx = 5 , pady = 5 , * args , ** kw )
790+ LabelFrame .__init__ (self , parent , text = title , padx = 5 , pady = 5 , * args , ** kw )
791791
792792 # create a canvas object and a vertical scrollbar for scrolling it
793793 vscrollbar = Scrollbar (self , orient = VERTICAL )
@@ -1709,7 +1709,7 @@ def exportScript( self ):
17091709 for widget in self .widgetToItem :
17101710 name = widget [ 'text' ]
17111711 tags = self .canvas .gettags ( self .widgetToItem [ widget ] )
1712-
1712+
17131713 if 'Controller' in tags :
17141714 opts = self .controllers [name ]
17151715 controllerType = opts ['controllerType' ]
@@ -1720,9 +1720,9 @@ def exportScript( self ):
17201720 controllerIP = opts ['remoteIP' ]
17211721 controllerPort = opts ['remotePort' ]
17221722
1723-
1723+
17241724 f .write (" " + name + "=net.addController(name='" + name + "',\n " )
1725-
1725+
17261726 if controllerType == 'remote' :
17271727 f .write (" controller=RemoteController,\n " )
17281728 f .write (" ip='" + controllerIP + "',\n " )
@@ -1733,7 +1733,7 @@ def exportScript( self ):
17331733 f .write (" controller=OVSController,\n " )
17341734 else :
17351735 f .write (" controller=Controller,\n " )
1736-
1736+
17371737 f .write (" protocol='" + controllerProtocol + "',\n " )
17381738 f .write (" port=" + str (controllerPort )+ ")\n " )
17391739 f .write ("\n " )
@@ -1943,7 +1943,7 @@ def exportScript( self ):
19431943 for widget in self .widgetToItem :
19441944 name = widget [ 'text' ]
19451945 tags = self .canvas .gettags ( self .widgetToItem [ widget ] )
1946-
1946+
19471947 if 'Switch' in tags :
19481948 opts = self .switchOpts [name ]
19491949 if 'netflow' in opts :
@@ -1967,7 +1967,7 @@ def exportScript( self ):
19671967 for widget in self .widgetToItem :
19681968 name = widget [ 'text' ]
19691969 tags = self .canvas .gettags ( self .widgetToItem [ widget ] )
1970-
1970+
19711971 if 'Switch' in tags :
19721972 opts = self .switchOpts [name ]
19731973 if 'sflow' in opts :
@@ -2641,7 +2641,7 @@ def deleteLink( self, link ):
26412641 else :
26422642 controllerName = dest [ 'text' ]
26432643 switchName = source [ 'text' ]
2644-
2644+
26452645 if controllerName in self .switchOpts [switchName ]['controllers' ]:
26462646 self .switchOpts [switchName ]['controllers' ].remove (controllerName )
26472647
@@ -2662,7 +2662,7 @@ def deleteNode( self, item ):
26622662 if 'Switch' in tags :
26632663 if widget ['text' ] in self .switchOpts [name ]['controllers' ]:
26642664 self .switchOpts [name ]['controllers' ].remove (widget ['text' ])
2665-
2665+
26662666 for link in widget .links .values ():
26672667 # Delete from view and model
26682668 self .deleteItem ( link )
@@ -2917,7 +2917,7 @@ def postStartSetup( self ):
29172917 for widget in self .widgetToItem :
29182918 name = widget [ 'text' ]
29192919 tags = self .canvas .gettags ( self .widgetToItem [ widget ] )
2920-
2920+
29212921 if 'Switch' in tags :
29222922 opts = self .switchOpts [name ]
29232923 if 'netflow' in opts :
@@ -2947,7 +2947,7 @@ def postStartSetup( self ):
29472947 for widget in self .widgetToItem :
29482948 name = widget [ 'text' ]
29492949 tags = self .canvas .gettags ( self .widgetToItem [ widget ] )
2950-
2950+
29512951 if 'Switch' in tags :
29522952 opts = self .switchOpts [name ]
29532953 if 'sflow' in opts :
0 commit comments