diff --git a/mininet/node.py b/mininet/node.py index fb98ff32156874c2765b7f6e05c711c12f413ddd..30c53ee41c7ddb8af753fd9abeae35d072288e20 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -460,7 +460,7 @@ def start( self, controllers ): quietRun( 'ovs-dpctl del-dp dp%i' % self.dp ) self.cmd( 'ovs-dpctl add-dp dp%i' % self.dp ) if self.defaultMAC: - intf = 'dp' % self.dp + intf = 'dp%i' % self.dp mac = self.defaultMAC self.cmd( [ 'ifconfig', intf, 'hw', 'ether', mac ] )