Last change
on this file since 2498 was
1191,
checked in by broder, 16 years ago
|
Strip the sipb-xen prefix from packages we didn't write
|
File size:
699 bytes
|
Rev | Line | |
---|
[361] | 1 | #!/usr/bin/python |
---|
| 2 | |
---|
| 3 | from pydhcplib.type_hw_addr import hwmac |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | address = hwmac() |
---|
| 7 | print "a0 : ",address |
---|
| 8 | |
---|
| 9 | address1 = hwmac("ff:11:22:33:44:55") |
---|
| 10 | print "a1 : ",address1 |
---|
| 11 | |
---|
| 12 | address2 = hwmac("f6.16.26.36.46.56") |
---|
| 13 | print "a2 : ",address2 |
---|
| 14 | |
---|
| 15 | address3 = hwmac("ff.11-22:33-44.55") |
---|
| 16 | print "a3 : ",address3 |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | if address1 == address2 : print "test 1 : ",address1, "==",address2 |
---|
| 21 | else : print "test 1 : " ,address1, "!=",address2 |
---|
| 22 | |
---|
| 23 | if address1 == address3 : print "test 2 : ", address1, "==",address3 |
---|
| 24 | else : print "test 2 : ", address1, "!=",address3 |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | address4 = hwmac([186, 45, 67, 176, 6, 11]) |
---|
| 29 | address5 = hwmac("ba:2d:43:b0:06:0c") |
---|
| 30 | |
---|
| 31 | print "b0 : ", address4,address4.list() |
---|
| 32 | print "b1 : ", address5,address5.list() |
---|
Note: See
TracBrowser
for help on using the repository browser.