Add TCLink for simplified tc-limited link creation.

This commit is contained in:
Bob Lantz committed 2012-03-20 15:43:43 -07:00
1 parent 5a8bb48951
commit ff56881946
2 files changed
+18 -7

No files matched your search

+11
View File
@@ -371,3 +371,14 @@ class Link( object ):
def __str__( self ):
return '%s<->%s' % ( self.intf1, self.intf2 )
class TCLink( Link ):
"Link with symmetric TC interfaces configured via opts"
def __init__( self, node1, node2, port1=None, port2=None,
intfName1=None, intfName2=None, **params ):
Link.__init__( self, node1, node2, port1=None, port2=None,
intfName1=None, intfName2=None,
cls1=TCIntf,
cls2=TCIntf,
params1=params,
params2=params)