Renamed project from 'ifxtool' to 'ifxlookup'

This commit is contained in:
Daniel Dayley 2019-12-11 10:36:02 -07:00
parent d48624d5bd
commit 91f42d8cd5
2 changed files with 7 additions and 7 deletions

4
README
View File

@ -1,5 +1,5 @@
# ifxtool
### A python command-line client for infrastructure equipment.
# ifxlookup
### A python command-line lookup client for infrastructure equipment.
## Installation

View File

@ -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()