37 lines
892 B
Diff
37 lines
892 B
Diff
diff -up ./src/icfg.orig ./src/icfg
|
|
--- ./src/icfg.orig 2018-02-20 10:00:47.738647996 -0500
|
|
+++ ./src/icfg 2018-02-20 10:07:48.203054651 -0500
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
import os
|
|
import sys
|
|
import string
|
|
@@ -133,7 +133,7 @@ class iface(object):
|
|
|
|
def dump(self):
|
|
for i in self.config.keys():
|
|
- print i+"="+"\""+self.config[i]+"\""
|
|
+ print(i,"=","\"",self.config[i],"\"", sep="")
|
|
|
|
def removeKey(self, key):
|
|
try:
|
|
@@ -299,7 +299,7 @@ def createNewConfig(ifname, iftype):
|
|
|
|
def log(msg):
|
|
if (goptions.quiet == False):
|
|
- print msg
|
|
+ print(msg)
|
|
|
|
def main():
|
|
global goptions
|
|
@@ -427,7 +427,7 @@ def main():
|
|
if (goptions.listslaves == True):
|
|
try:
|
|
for slave in ifdev.slaves:
|
|
- print slave.name
|
|
+ print(slave.name)
|
|
except AttributeError:
|
|
log("Only bond master devices have slaves")
|
|
sys.exit(6)
|