summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvalidation/test/av_home/av_mme.py26
1 files changed, 21 insertions, 5 deletions
diff --git a/validation/test/av_home/av_mme.py b/validation/test/av_home/av_mme.py
index c64e301b98..9b59b7c428 100755
--- a/validation/test/av_home/av_mme.py
+++ b/validation/test/av_home/av_mme.py
@@ -149,13 +149,13 @@ List of neighbor networks for {plug}:
if ans[CC_DISCOVER_LIST_CNF].num_station != 0:
stations = """Total: {n} station(s)
-+-------------------+------+-----+
-| MAC | SNID | TEI |
-+-------------------+------+-----+
++-------------------+------------+------+-----+
+| MAC | Vendor | SNID | TEI |
++-------------------+------------+------+-----+
"""
for e in ans[CC_DISCOVER_LIST_CNF].stations:
- stations += "| %s | %02d | %03d |\n" % (e.mac, int (e.snid), int (e.tei))
- stations += "+-------------------+------+-----+\n"
+ stations += "| %s | %10s | %02d | %03d |\n" % (e.mac, get_vendor (e.mac), int (e.snid), int (e.tei))
+ stations += "+-------------------+------------+------+-----+\n"
stations = stations.format (n = ans[CC_DISCOVER_LIST_CNF].num_station)
else:
stations = "No neighbor station discovered."
@@ -226,3 +226,19 @@ Attenuation for {plug}:
attenuations = attenuations)
print >>f, attenuation,
f.close ()
+
+def get_vendor (mac):
+ vendor = {
+ "00:13:d7": "Spicdom",
+ "bc:f2:af": "Devolo AG",
+ "00:0b:3b": "Devolo AG",
+ "00:0c:b9": "LEA",
+ "00:22:75": "Belkin",
+ "00:07:cb": "Freebox",
+ "00:24:d4": "Freebox",
+ "14:0c:76": "Freebox"
+ }
+ if mac[:8] in vendor:
+ return vendor[mac[:8]]
+ else:
+ return "Unknown"