Changeset 9 for trunk/pxeconfig/pxeconfig
- Timestamp:
- 02/21/02 16:30:43 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/pxeconfig
r6 r9 7 7 # 8 8 # CVS info 9 # $Date: 2002/02/21 1 3:21:51$10 # $Revision: 1. 4$9 # $Date: 2002/02/21 15:30:43 $ 10 # $Revision: 1.5 $ 11 11 # 12 12 # Copyright (C) 2000, SARA. … … 26 26 """ 27 27 With this program you can configure which PXE configuration file 28 to use when a node boots. The program mwill ask the following questions:28 to use when a node boots. The program will ask the following questions: 29 29 1) Network address (Class C-network address only) 30 2) Starting num mber30 2) Starting number 31 31 3) Ending number 32 4) Which PXE config file to use .32 4) Which PXE config file to use 33 33 34 34 For example, if the answers are: … … 66 66 def choice_pxe_configfile(): 67 67 """ 68 Let user cho ice which pxeconfig file to use.68 Let user choose which pxeconfig file to use. 69 69 """ 70 70 71 71 os.chdir(PXE_CONF_DIR) 72 72 73 # Try to determine to which default file point toand74 # if exists remove it from te list.73 # Try to determine to which file the default symlink points, and 74 # if it exists, remove it from the list. 75 75 # 76 76 try: … … 103 103 104 104 # Is the user smart enough to select 105 # the right value 105 # the right value?? 106 106 # 107 107 if 0 < index <= len(files): break … … 112 112 """ 113 113 Create the links in the PXE_CONF_DIR, 114 list : A list containing: network hex addres , pxe config file,114 list : A list containing: network hex address, pxe config file, 115 115 start number, end number 116 116 """ … … 127 127 def check_network(net): 128 128 """ 129 This function check if the give network is a Class C-network and will129 This function checks if the give network is a Class C-network and will 130 130 convert the network address to a hex address if true. 131 131 """ … … 170 170 print __doc__ 171 171 172 network = raw_input('Give network addres (xxx.xxx.xxx): ')172 network = raw_input('Give network address (xxx.xxx.xxx): ') 173 173 naddr = check_network(network) 174 174
Note: See TracChangeset
for help on using the changeset viewer.