mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Revert "importlib refactor lfcli_base.py"
This reverts commit 787edf2d51.
This commit is contained in:
@@ -1,25 +1,22 @@
|
|||||||
#!env /usr/bin/python
|
#!env /usr/bin/python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import importlib
|
|
||||||
import signal
|
import signal
|
||||||
import traceback
|
import traceback
|
||||||
|
# Extend this class to use common set of debug and request features for your script
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
import datetime
|
import datetime
|
||||||
import argparse
|
import argparse
|
||||||
|
import LANforge.LFUtils
|
||||||
|
from LANforge.LFUtils import *
|
||||||
|
from LANforge import LFRequest
|
||||||
|
import LANforge.LFRequest
|
||||||
import csv
|
import csv
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import re
|
import os
|
||||||
# Extend this class to use common set of debug and request features for your script
|
|
||||||
|
|
||||||
if 'lanforge-scripts' not in sys.path:
|
|
||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
|
|
||||||
|
|
||||||
LFUtils = importlib.import_module("lanforge-scripts.py-json.LANforge.LFUtils")
|
|
||||||
LFRequest = importlib.import_module("lanforge-scripts.py-json.LANforge.LFRequest")
|
|
||||||
|
|
||||||
|
|
||||||
class LFCliBase:
|
class LFCliBase:
|
||||||
@@ -204,7 +201,7 @@ class LFCliBase:
|
|||||||
|
|
||||||
lf_r.addPostData(_data)
|
lf_r.addPostData(_data)
|
||||||
if debug_:
|
if debug_:
|
||||||
LFUtils.debug_printer.pprint(_data)
|
LANforge.LFUtils.debug_printer.pprint(_data)
|
||||||
json_response = lf_r.json_post(show_error=debug_,
|
json_response = lf_r.json_post(show_error=debug_,
|
||||||
debug=debug_,
|
debug=debug_,
|
||||||
response_json_list_=response_json_list_,
|
response_json_list_=response_json_list_,
|
||||||
@@ -242,7 +239,7 @@ class LFCliBase:
|
|||||||
die_on_error_=self.exit_on_error)
|
die_on_error_=self.exit_on_error)
|
||||||
lf_r.addPostData(_data)
|
lf_r.addPostData(_data)
|
||||||
if debug_:
|
if debug_:
|
||||||
LFUtils.debug_printer.pprint(_data)
|
LANforge.LFUtils.debug_printer.pprint(_data)
|
||||||
json_response = lf_r.json_put(show_error=self.debug,
|
json_response = lf_r.json_put(show_error=self.debug,
|
||||||
debug=debug_,
|
debug=debug_,
|
||||||
response_json_list_=response_json_list_,
|
response_json_list_=response_json_list_,
|
||||||
|
|||||||
Reference in New Issue
Block a user