diff --git a/README b/README index 61c6d99..07a82d7 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -# ifxtool -### A python command-line client for infrastructure equipment. +# ifxlookup +### A python command-line lookup client for infrastructure equipment. ## Installation diff --git a/ifxtool b/ifxlookup similarity index 96% rename from ifxtool rename to ifxlookup index e5b85d3..3b52676 100755 --- a/ifxtool +++ b/ifxlookup @@ -1,5 +1,5 @@ #!/usr/local/bin/python3 -# ifxtool, A python command-line client for infrastructure equipment. +# ifxlookup, A python command-line client for infrastructure equipment. # November 2019 by Daniel Dayley import os @@ -15,9 +15,9 @@ import importlib yaml.Dumper.ignore_aliases = lambda *args : True -class IFXTool(): +class IFXLookup(): configdir = os.path.expanduser('~/.config') - configfilename = 'ifxtool.yml' + configfilename = 'ifxlookup.yml' servicetemplate = {'hosts':[],'username':'','key':''} configtemplate = {'bluecat':servicetemplate,'f5':servicetemplate,'paloalto':servicetemplate,'aruba':servicetemplate,'openvpn':servicetemplate} errorinfo = {} @@ -154,7 +154,7 @@ if __name__ == "__main__": # Gather Argument options parser = argparse.ArgumentParser() - parser.add_argument('-c', '--config', action='store', help="Specify a config file (~/.config/ifxtool.yml by default)") + parser.add_argument('-c', '--config', action='store', help="Specify a config file (~/.config/ifxlookup.yml by default)") parser.add_argument('-j', '--json', action='store_true', help="Return results as a json object") parser.add_argument('-l', '--link', action='store_true', help="Return physical link information about the subject") for delegate in delegates : @@ -167,5 +167,5 @@ if __name__ == "__main__": args = parser.parse_args() # Dispatch master object - main = IFXTool(delegates,args) + main = IFXLookup(delegates,args) main.dispatch()