Changeset 73db3090c34e51a2508cdc048d3ca2f4cf3da288 for pxe/addsystem
- Timestamp:
- 05/12/10 14:10:28 (21 months ago)
- Children:
- 36e3187115d175e2667c28737fdaccbd1fed1723
- Parents:
- a37e6686ba85de9cf2e143a6485dd63bceff9404
- git-committer:
- Frederic Lepied <frederic.lepied@…> (05/12/10 14:10:28)
- Files:
-
- 1 modified
-
pxe/addsystem (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pxe/addsystem
ra37e668 r73db309 15 15 from pxe.common import * 16 16 17 if len(sys.argv) < 2:17 if len(sys.argv) < 3: 18 18 error('Usage: %s <system name> <MAC> [<MAC2>...]' % sys.argv[0]) 19 19 … … 28 28 29 29 for addr in sys.argv[2:]: 30 a = simplify_mac(addr) 30 if addr.index('.') >= 0: 31 a = simplify_ip(addr) 32 else: 33 a = simplify_mac(addr) 31 34 try: 32 35 mac = MacAddress.objects.get(mac=a)
