@@ -238,9 +238,9 @@ class NatConfig(object):
238
238
for napt in self .static_napt_data :
239
239
output .append ([napt [0 ], napt [1 ], napt [2 ], napt [3 ], napt [4 ], napt [5 ], napt [6 ]])
240
240
241
- print ()
241
+ print ("" )
242
242
print (tabulate (output , HEADER ))
243
- print ()
243
+ print ("" )
244
244
245
245
def display_pool (self ):
246
246
"""
@@ -253,9 +253,9 @@ class NatConfig(object):
253
253
for nat in self .nat_pool_data :
254
254
output .append ([nat [0 ], nat [1 ], nat [2 ]])
255
255
256
- print ()
256
+ print ("" )
257
257
print (tabulate (output , HEADER ))
258
- print ()
258
+ print ("" )
259
259
260
260
def display_binding (self ):
261
261
"""
@@ -268,9 +268,9 @@ class NatConfig(object):
268
268
for nat in self .nat_binding_data :
269
269
output .append ([nat [0 ], nat [1 ], nat [2 ], nat [3 ], nat [4 ]])
270
270
271
- print ()
271
+ print ("" )
272
272
print (tabulate (output , HEADER ))
273
- print ()
273
+ print ("" )
274
274
275
275
def display_global (self ):
276
276
"""
@@ -280,31 +280,31 @@ class NatConfig(object):
280
280
281
281
global_data = self .config_db .get_entry ('NAT_GLOBAL' , 'Values' )
282
282
if global_data :
283
- print ()
283
+ print ("" )
284
284
if 'admin_mode' in global_data :
285
- print ("Admin Mode :" , global_data ['admin_mode' ])
285
+ print ("Admin Mode : {}" . format ( global_data ['admin_mode' ]) )
286
286
else :
287
287
print ("Admin Mode : disabled" )
288
288
if 'nat_timeout' in global_data :
289
- print ("Global Timeout :" , global_data ['nat_timeout' ], "secs" )
289
+ print ("Global Timeout : {}" . format ( global_data ['nat_timeout' ], "secs" ) )
290
290
else :
291
291
print ("Global Timeout : 600 secs" )
292
292
if 'nat_tcp_timeout' in global_data :
293
- print ("TCP Timeout :" , global_data ['nat_tcp_timeout' ], "secs" )
293
+ print ("TCP Timeout : {}" . format ( global_data ['nat_tcp_timeout' ], "secs" ) )
294
294
else :
295
295
print ("TCP Timeout : 86400 secs" )
296
296
if 'nat_udp_timeout' in global_data :
297
- print ("UDP Timeout :" , global_data ['nat_udp_timeout' ], "secs" )
297
+ print ("UDP Timeout : {}" . format ( global_data ['nat_udp_timeout' ], "secs" ) )
298
298
else :
299
299
print ("UDP Timeout : 300 secs" )
300
- print ()
300
+ print ("" )
301
301
else :
302
- print ()
302
+ print ("" )
303
303
print ("Admin Mode : disabled" )
304
304
print ("Global Timeout : 600 secs" )
305
305
print ("TCP Timeout : 86400 secs" )
306
306
print ("UDP Timeout : 300 secs" )
307
- print ()
307
+ print ("" )
308
308
return
309
309
310
310
def display_nat_zone (self ):
@@ -318,9 +318,9 @@ class NatConfig(object):
318
318
for nat in self .nat_zone_data :
319
319
output .append ([nat [0 ], nat [1 ]])
320
320
321
- print ()
321
+ print ("" )
322
322
print (tabulate (output , HEADER ))
323
- print ()
323
+ print ("" )
324
324
325
325
def main ():
326
326
parser = argparse .ArgumentParser (description = 'Display the nat configuration information' ,
0 commit comments