summaryrefslogtreecommitdiff
path: root/cesar/maximus/common
diff options
context:
space:
mode:
authorlaranjeiro2008-10-22 16:29:55 +0000
committerlaranjeiro2008-10-22 16:29:55 +0000
commitfbdd63c8b2a8d36d472d6fe018287cd1274467db (patch)
tree0c5560fb4cc789931c9cb6250584b114524ebe5b /cesar/maximus/common
parent2e3aea2d33cf5c1ae8cf3723f80190447b75bd0c (diff)
csg: removed the python script to generate new scripts.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3332 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/maximus/common')
-rw-r--r--cesar/maximus/common/tools/csg/core/csgavln.py39
-rw-r--r--cesar/maximus/common/tools/csg/core/csgcore.py100
-rw-r--r--cesar/maximus/common/tools/csg/core/csgpacket.py27
-rw-r--r--cesar/maximus/common/tools/csg/core/csgscriptwriter.py175
-rw-r--r--cesar/maximus/common/tools/csg/core/csgstation.py44
-rw-r--r--cesar/maximus/common/tools/csg/core/test/avln.py61
-rw-r--r--cesar/maximus/common/tools/csg/core/test/core.py48
-rw-r--r--cesar/maximus/common/tools/csg/core/test/core_script.py279
-rw-r--r--cesar/maximus/common/tools/csg/core/test/restest.py104
-rw-r--r--cesar/maximus/common/tools/csg/core/test/script.py31
-rw-r--r--cesar/maximus/common/tools/csg/core/test/sta.py44
-rw-r--r--cesar/maximus/common/tools/csg/core/test/writer.py44
-rw-r--r--cesar/maximus/common/tools/csg/doc/Makefile20
-rw-r--r--cesar/maximus/common/tools/csg/doc/csg.odtbin100266 -> 0 bytes
-rw-r--r--cesar/maximus/common/tools/csg/doc/csg.xmi216
-rw-r--r--cesar/maximus/common/tools/csg/doc/csg_spec.txt401
16 files changed, 0 insertions, 1633 deletions
diff --git a/cesar/maximus/common/tools/csg/core/csgavln.py b/cesar/maximus/common/tools/csg/core/csgavln.py
deleted file mode 100644
index dc95d1a82d..0000000000
--- a/cesar/maximus/common/tools/csg/core/csgavln.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-
-from csgstation import *
-
-class csgAvln:
-
- def __init__ (self, npw, ahfid):
- self.npw = npw
- self.ahfid = ahfid
- self.hp_sta_max = 254
- self.sta_list = list()
-
- def get_ahfid (self):
- return self.ahfid
-
- def get_npw (self):
- return self.npw
-
- def get_nb_sta (self):
- return len(self.sta_list)
-
- def sta_add (self, mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug):
- if self.hp_sta_max <= len(self.sta_list):
- return None
-
- for i in range (0, len (self.sta_list)):
- if (self.sta_list[i].get_mac_addr() == mac_addr):
- return None
-
- sta = csgSta (mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug)
- self.sta_list.append (sta)
- return sta
-
- def sta_remove (self, mac_addr):
-
- for i in range (0, len(self.sta_list)):
- if self.sta_list[i].get_mac_addr () == mac_addr:
- self.sta_list.remove (self.sta_list[i])
- break
diff --git a/cesar/maximus/common/tools/csg/core/csgcore.py b/cesar/maximus/common/tools/csg/core/csgcore.py
deleted file mode 100644
index 2524fb7eb8..0000000000
--- a/cesar/maximus/common/tools/csg/core/csgcore.py
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/usr/bin/env python
-
-# CSG core.
-# Spidcom 2008
-
-from csgavln import *
-from csgscriptwriter import *
-from csgpacket import *
-
-import random
-
-class csgCore:
-
- def __init__ (self):
- self.script_name = ""
- self.test_description = ""
- self.avln_list = list()
-
- def set_script_name (self, script_name):
- self.script_name = script_name
-
- def get_script_name (self):
- return self.script_name
-
- def set_test_description (self, test_description):
- self.test_description = test_description
-
- def get_test_description (self):
- return self.test_description
-
- def avln_add (self, npw, ahfid):
-
- for i in range (0, len (self.avln_list)):
- if ahfid == self.avln_list[i].get_ahfid():
- return None
-
- avln = csgAvln (npw, ahfid)
-
- # Adding the AVLN to the list.
- self.avln_list.append(avln)
- return avln
-
- def avln_create_traffic (self, avln, number_packets):
- packets = list()
-
- nb = 0
- while nb < number_packets:
- stop = False
-
- # Get sta source
- index = random.randint(0, avln.get_nb_sta() - 1)
- sta_src = avln.sta_list[index]
-
- # Get sta dest
- index = random.randint(0, avln.get_nb_sta())
- if index == avln.get_nb_sta ():
- sta_dest = None
- elif avln.sta_list[index] != sta_src:
- sta_dest = avln.sta_list[index]
- else:
- stop = True
-
- if stop != True:
- packet = csgPacket(avln, sta_src, random.randint(0, 1500), sta_dest)
- packets.append (packet)
- nb = nb + 1
- return packets
-
- def process (self, packets_list, station_exec = "" , wait_sec = 5):
- writer = csgScriptWriter (self.script_name)
- writer.set_description (self.test_description)
- writer.header ()
- writer.create_maximus (station_exec)
-
- # Create the AVLN in the Maximus script.
- writer.create_avlns (self.avln_list)
-
- # Launch all the station in the Maximus script.
- for i in range (0, len(self.avln_list)):
- writer.launch_stas (self.avln_list[i])
-
- # Request maximus to wait the wait_sec value.
- writer.maximus_wait (wait_sec)
-
- # Request all the station to send a broadcast Ethernet packet.
- for i in range (0, len(self.avln_list)):
- writer.maximus_send_braodcast_data (self.avln_list[i])
-
- # Add the Frames.
- for i in range (0, len (packets_list)):
- avln = packets_list[i].get_avln()
- sta_src = packets_list[i].get_sta_src ()
- sta_dest = packets_list[i].get_sta_dest ()
- size = packets_list[i].get_payload_size ()
- writer.maximus_send_frame (avln, sta_src, size, sta_dest)
-
- # end the script.
- writer.maximus_wait (wait_sec)
- writer.ends (self.avln_list)
- writer.write()
diff --git a/cesar/maximus/common/tools/csg/core/csgpacket.py b/cesar/maximus/common/tools/csg/core/csgpacket.py
deleted file mode 100644
index c520f4cb24..0000000000
--- a/cesar/maximus/common/tools/csg/core/csgpacket.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env python
-
-# CSG Packet.
-# Spidcom 2008
-
-from csgstation import *
-from csgavln import *
-
-class csgPacket:
-
- def __init__ (self, avln, sta_src, payload_size, sta_dest = None):
- self.avln = avln
- self.sta_src = sta_src
- self.sta_dst = sta_dest
- self.payload_size = payload_size
-
- def get_avln (self):
- return self.avln
-
- def get_sta_src (self):
- return self.sta_src
-
- def get_sta_dest (self):
- return self.sta_dst
-
- def get_payload_size (self):
- return self.payload_size
diff --git a/cesar/maximus/common/tools/csg/core/csgscriptwriter.py b/cesar/maximus/common/tools/csg/core/csgscriptwriter.py
deleted file mode 100644
index 3f872a3874..0000000000
--- a/cesar/maximus/common/tools/csg/core/csgscriptwriter.py
+++ /dev/null
@@ -1,175 +0,0 @@
-#!/usr/bin/env python
-
-from csgavln import *
-from struct import *
-import re
-import os
-import random
-
-class csgScriptWriter:
- def __init__ (self, script_name):
- self.data = "#!/usr/bin/env python\n\n"
- self.file = script_name
-
- def set_description (self, description):
- for i in range (1, 78):
- self.data += "#"
- self.data += "\n"
-
- length = 0
- des = description
- while length < len(description):
- self.data += "# "
- line = re.search ('.{0,74}', des)
- line = line.group(0)
- self.data += line
- des = des[len(line):len(des)]
- length = length + len(line)
-
- for i in range (1,75 - len(line)):
- self.data += " "
- self.data += "#\n"
-
- for i in range (1, 78):
- self.data += "#"
- self.data += "\n\n"
-
- def header (self):
- depth = self.file.split('/')
- base = ""
- found = False
- for i in range (0, len(depth)):
- base += "../"
- list = os.listdir (base)
- for j in range (0, len(list)):
- if list[j] == "lib":
- found = True
- break
- if found == True:
- break
-
- self.data += "import sys\n"
- self.data += "sys.path.append('" + base + "maximus/python/obj')\n"
- self.data += "sys.path.append('" + base + "maximus/python')\n"
- self.data += "sys.path.append('" + base + "maximus/python/lib/cesar')\n"
-
- self.data += "\n"
- self.data += "from interface import *\n"
- self.data += "from string import *\n"
- self.data += "from struct import *\n"
- self.data += "from maximus import *\n"
- self.data += "from sta_cesar import STACesar\n"
- self.data += "import unittest\n\n"
-
- def create_maximus (self, sta_executable):
- self.data += "maximus = Maximus()\n"
-
- if sta_executable == "":
- self.data += "maximus.init (sys.argv)\n\n"
- else:
- self.data += "maximus.init (sys.argv + ['-e', '" + sta_executable + "'])\n\n"
-
- def create_sta (self, sta, npw, ahfid):
- station_id = "sta_" + ahfid + "_" + sta.get_user_hfid()
- self.data += station_id + "_conf = Config ()\n"
- self.data += station_id + "_conf.mac_address = \"" + sta.get_mac_addr () + "\"\n"
- self.data += station_id + "_conf.cco_preference = " + str(sta.get_cco_preference()) + "\n"
- self.data += station_id + "_conf.was_cco = " + str(sta.get_was_cco ()) + "\n"
- self.data += station_id + "_conf.npw = \"" + npw + "\"\n"
- self.data += station_id + "_conf.dpw = \"" + sta.get_dpw()+ "\"\n"
- self.data += station_id + "_conf.m_sta_hfid = \"" + sta.get_manufacturer_hfid () + "\"\n"
- self.data += station_id + "_conf.u_sta_hfid = \"" + sta.get_user_hfid () + "\"\n"
- self.data += station_id + "_conf.avln_hfid = \"" + ahfid+ "\"\n"
-
- self.data += station_id + "_conf.tonemask = " + sta.get_tonemask() + "\n"
- self.data += station_id + "_conf.sl = " + str(sta.get_security_level ()) + "\n"
- self.data += station_id + "_conf.snid = None\n\n"
-
- def create_avln (self, avln):
- self.data += "# Creating the AVLN " + avln.get_ahfid() + "\n\n"
-
- for i in range (0, avln.get_nb_sta()):
- self.data += "# Configuration of the station " + avln.sta_list[i].get_user_hfid() + "\n"
- self.create_sta (avln.sta_list[i], avln.get_npw(), avln.get_ahfid())
-
- def create_avlns (self, avlns):
- for i in range (0, len (avlns)):
- self.create_avln (avlns[i])
-
- def write_sta (self, sta, ahfid):
- sta_name = "sta_" + ahfid + "_" + sta.get_user_hfid ()
- sta_conf = sta_name + "_conf"
- seed = random.randint(100, 10000)
- self.data += sta_name + " = STACesar (maximus, config=" + sta_conf + ", mme_buffer_nb=1, debug=" + str(sta.get_debug ()) + ", config_mode=\"MME\", seed=" + str(seed) + ")\n"
-
- def launch_stas(self, avln):
- self.data += "# Launching the stations\n"
- for i in range (0, avln.get_nb_sta()):
- self.write_sta (avln.sta_list[i], avln.get_ahfid())
-
- self.data += "print \"Launching all the stations\"\n"
- self.data += "\n"
-
- def maximus_wait (self, sec):
- wait = str (int(sec * 1e3 * 25e3))
- self.data += "# Wait assoc for " + str(sec) + " seconds\n"
- self.data += "print \"Waiting " + str (sec) + " seconds\"\n"
- self.data += "maximus.wait(" + wait + ")\n\n"
-
- def maximus_send_frame (self, avln, sta_src, payload_len, sta_dest = None):
-
- if payload_len > 1500:
- raise Exception('Ethernet payload too long')
-
- self.data += "# Sending a frame\n"
- dest = ""
- if sta_dest == None:
- dest = "FF:FF:FF:FF:FF:FF"
- for i in range (0, avln.get_nb_sta()):
- if avln.sta_list[i] != sta_src:
- station = "sta_" + avln.get_ahfid() + "_" + avln.sta_list[i].get_user_hfid()
- self.data += "alloc_data_buffer (maximus, " + station + ")\n"
- else:
- station = "sta_" + avln.get_ahfid () + "_" + sta_dest.get_user_hfid ()
- self.data += "alloc_data_buffer (maximus, " + station + ")\n"
- dest = sta_dest.get_mac_addr ()
-
- self.data += "\n"
- self.data += "frame = Eth()\n"
- self.data += "frame.dst = \"" + dest + "\"\n"
- self.data += "frame.src = \"" + sta_src.get_mac_addr () + "\"\n"
- self.data += "frame.type = 0x4F50\n"
-
- payload = ""
- for i in range (0, payload_len):
- payload += str(random.randint(0,9))
-
- self.data += "frame.payload = \"" + payload + "\"\n"
-
- station = "sta_" + avln.get_ahfid() + "_" + sta_src.get_user_hfid()
- self.data += "print \"Sending a Frame " + station + " to " + dest + "\"\n"
- self.data += "frame.send (maximus, " + station + ")\n\n"
-
- def maximus_send_braodcast_data (self, avln):
- for i in range (0, avln.get_nb_sta()):
- self.maximus_send_frame (avln, avln.sta_list[i], 60)
-
- def ends_avln (self, avln):
- for i in range (0, avln.get_nb_sta ()):
- station = "sta_" + avln.get_ahfid() + "_" + avln.sta_list[i].get_user_hfid()
- self.data += station + ".remove()\n"
-
- def ends (self, avln_list):
- for i in range (0, len(avln_list)):
- self.data += "# Removing station from AVLN " + avln_list[i].get_ahfid() + "\n"
- self.ends_avln (avln_list[i])
- self.data += "\n\n"
- self.data += "print \"Test ended\""
-
- def write (self):
- file = open (self.file, 'w')
- file.write (self.data)
- file.close ()
-
- def get_script (self):
- return self.data
diff --git a/cesar/maximus/common/tools/csg/core/csgstation.py b/cesar/maximus/common/tools/csg/core/csgstation.py
deleted file mode 100644
index 44e387a853..0000000000
--- a/cesar/maximus/common/tools/csg/core/csgstation.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-
-class csgSta:
-
- def __init__(self, mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug):
- self.mac_addr = mac_addr
- self.cco_preference = cco_pref
- self.was_cco = was_cco
- self.dpw = dpw
- self.mhfid = mhfid
- self.uhfid = uhfid
- self.sl = sl
- self.debug = debug
- self.tonemask = "(85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)"
-
- def get_mac_addr (self):
- return self.mac_addr
-
- def get_cco_preference(self):
- return self.cco_preference
-
- def get_was_cco (self):
- return self.was_cco
-
- def get_dpw (self):
- return self.dpw
-
- def get_manufacturer_hfid (self):
- return self.mhfid
-
- def get_user_hfid (self):
- return self.uhfid
-
- def get_security_level (self):
- return self.sl
-
- def get_debug (self):
- return self.debug
-
- def get_tonemask (self):
- return self.tonemask
-
- def set_tonemask (self, tonemask):
- self.tonemask = tonemask
diff --git a/cesar/maximus/common/tools/csg/core/test/avln.py b/cesar/maximus/common/tools/csg/core/test/avln.py
deleted file mode 100644
index 0e62c2bac9..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/avln.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-sys.path.append('../');
-
-import unittest
-
-from csgavln import *
-
-class TestAvln(unittest.TestCase):
-
- def setUp (self):
- pass
-
- def tearDown (self):
- pass
-
- def testCreateAVLN (self):
- npw = "HomeplugAV0123"
- ahfid = "AVLN1"
-
- avln1 = csgAvln (npw, ahfid)
-
- self.failUnless (avln1.get_ahfid() == ahfid)
- self.failUnless (avln1.get_npw() == npw)
-
- staAv1 = avln1.sta_add ("1", False, True, "S1", "S1", "S1", 1, False)
-
- self.failUnless (staAv1 != None)
- self.failUnless (staAv1.get_mac_addr() == "1")
- self.failUnless (staAv1.get_cco_preference() == False)
- self.failUnless (staAv1.get_was_cco () == True)
- self.failUnless (staAv1.get_dpw () == "S1")
- self.failUnless (staAv1.get_manufacturer_hfid () == "S1")
- self.failUnless (staAv1.get_user_hfid () == "S1")
- self.failUnless (staAv1.get_security_level () == 1)
- self.failUnless (staAv1.get_debug () == False)
-
- staAv2 = avln1.sta_add ("1", False, True, "S1", "S1", "S1", 1, False)
- self.failUnless (staAv2 == None)
-
- staAv2 = avln1.sta_add ("2", False, True, "S2", "S2", "S2", 2, False)
-
- self.failUnless (staAv2 != None)
- self.failUnless (staAv2.get_mac_addr() == "2")
- self.failUnless (staAv2.get_cco_preference() == False)
- self.failUnless (staAv2.get_was_cco () == True)
- self.failUnless (staAv2.get_dpw () == "S2")
- self.failUnless (staAv2.get_manufacturer_hfid () == "S2")
- self.failUnless (staAv2.get_user_hfid () == "S2")
- self.failUnless (staAv2.get_security_level () == 2)
- self.failUnless (staAv2.get_debug () == False)
-
-
- self.failUnless (avln1.get_nb_sta () == 2)
-
- avln1.sta_remove (staAv2.get_mac_addr ())
- self.failUnless (avln1.get_nb_sta () == 1)
-
-suite = unittest.TestLoader().loadTestsFromTestCase(TestAvln)
-testResult = unittest.TextTestRunner(verbosity=2).run(suite)
diff --git a/cesar/maximus/common/tools/csg/core/test/core.py b/cesar/maximus/common/tools/csg/core/test/core.py
deleted file mode 100644
index d039c27643..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/core.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-sys.path.append('../');
-
-import unittest
-
-from csgcore import *
-
-class TestCore(unittest.TestCase):
-
- def setUp (self):
- pass
-
- def tearDown (self):
- pass
-
- def testCreateAVLN (self):
- script_name = "toto"
- test_description = "Help"
-
- csg = csgCore ()
-
- self.failUnless (csg != None)
-
- csg.set_test_description (test_description)
- csg.set_script_name (script_name)
-
- self.failUnless (csg.get_test_description() == test_description)
- self.failUnless (csg.get_script_name () == script_name)
-
- avln1 = csg.avln_add ("1", "avln1")
-
- self.failUnless (avln1 != None)
- self.failUnless (avln1.get_npw() == "1")
- self.failUnless (avln1.get_ahfid () == "avln1")
-
- avln2 = csg.avln_add ("1", "avln1")
- self.failUnless (avln2 == None)
-
- avln2 = csg.avln_add ("2", "avln2")
-
- self.failUnless (avln2 != None)
- self.failUnless (avln2.get_npw() == "2")
- self.failUnless (avln2.get_ahfid () == "avln2")
-
-suite = unittest.TestLoader().loadTestsFromTestCase(TestCore)
-testResult = unittest.TextTestRunner(verbosity=2).run(suite)
diff --git a/cesar/maximus/common/tools/csg/core/test/core_script.py b/cesar/maximus/common/tools/csg/core/test/core_script.py
deleted file mode 100644
index afa55e3e35..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/core_script.py
+++ /dev/null
@@ -1,279 +0,0 @@
-#!/usr/bin/env python
-
-#############################################################################
-# This is a test of generation of the Maximus script. #
-#############################################################################
-
-import sys
-sys.path.append('../../../../../../maximus/python/obj')
-sys.path.append('../../../../../../maximus/python')
-sys.path.append('../../../../../../maximus/python/lib/cesar')
-
-from interface import *
-from string import *
-from struct import *
-from maximus import *
-from sta_cesar import STACesar
-import unittest
-
-maximus = Maximus()
-maximus.init (sys.argv)
-
-# Creating the AVLN AVLN1
-
-# Configuration of the station station1
-sta_AVLN1_station1_conf = Config ()
-sta_AVLN1_station1_conf.mac_address = "10:11:12:13:14:15"
-sta_AVLN1_station1_conf.cco_preference = False
-sta_AVLN1_station1_conf.was_cco = False
-sta_AVLN1_station1_conf.npw = "Homeplug_AVLN1"
-sta_AVLN1_station1_conf.dpw = "Homeplug_Station1"
-sta_AVLN1_station1_conf.m_sta_hfid = "spidcom_spc300_sta1"
-sta_AVLN1_station1_conf.u_sta_hfid = "station1"
-sta_AVLN1_station1_conf.avln_hfid = "AVLN1"
-sta_AVLN1_station1_conf.sl = 1
-sta_AVLN1_station1_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-sta_AVLN1_station1_conf.snid = 0
-
-# Configuration of the station station2
-sta_AVLN1_station2_conf = Config ()
-sta_AVLN1_station2_conf.mac_address = "20:22:22:23:24:25"
-sta_AVLN1_station2_conf.cco_preference = False
-sta_AVLN1_station2_conf.was_cco = False
-sta_AVLN1_station2_conf.npw = "Homeplug_AVLN1"
-sta_AVLN1_station2_conf.dpw = "Homeplug_Station2"
-sta_AVLN1_station2_conf.m_sta_hfid = "spidcom_spc300_sta2"
-sta_AVLN1_station2_conf.u_sta_hfid = "station2"
-sta_AVLN1_station2_conf.avln_hfid = "AVLN1"
-sta_AVLN1_station2_conf.sl = 1
-sta_AVLN1_station2_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-sta_AVLN1_station2_conf.snid = 0
-
-# Configuration of the station station3
-sta_AVLN1_station3_conf = Config ()
-sta_AVLN1_station3_conf.mac_address = "30:33:32:33:34:35"
-sta_AVLN1_station3_conf.cco_preference = False
-sta_AVLN1_station3_conf.was_cco = False
-sta_AVLN1_station3_conf.npw = "Homeplug_AVLN1"
-sta_AVLN1_station3_conf.dpw = "Homeplug_Station3"
-sta_AVLN1_station3_conf.m_sta_hfid = "spidcom_spc300_sta3"
-sta_AVLN1_station3_conf.u_sta_hfid = "station3"
-sta_AVLN1_station3_conf.avln_hfid = "AVLN1"
-sta_AVLN1_station3_conf.sl = 1
-sta_AVLN1_station3_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-sta_AVLN1_station3_conf.snid = 0
-
-# Configuration of the station station4
-sta_AVLN1_station4_conf = Config ()
-sta_AVLN1_station4_conf.mac_address = "40:44:42:43:44:45"
-sta_AVLN1_station4_conf.cco_preference = False
-sta_AVLN1_station4_conf.was_cco = False
-sta_AVLN1_station4_conf.npw = "Homeplug_AVLN1"
-sta_AVLN1_station4_conf.dpw = "Homeplug_Station4"
-sta_AVLN1_station4_conf.m_sta_hfid = "spidcom_spc300_sta4"
-sta_AVLN1_station4_conf.u_sta_hfid = "station4"
-sta_AVLN1_station4_conf.avln_hfid = "AVLN1"
-sta_AVLN1_station4_conf.sl = 1
-sta_AVLN1_station4_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-sta_AVLN1_station4_conf.snid = 0
-
-# Configuration of the station station5
-sta_AVLN1_station5_conf = Config ()
-sta_AVLN1_station5_conf.mac_address = "50:55:52:53:54:55"
-sta_AVLN1_station5_conf.cco_preference = False
-sta_AVLN1_station5_conf.was_cco = False
-sta_AVLN1_station5_conf.npw = "Homeplug_AVLN1"
-sta_AVLN1_station5_conf.dpw = "Homeplug_Station5"
-sta_AVLN1_station5_conf.m_sta_hfid = "spidcom_spc300_sta5"
-sta_AVLN1_station5_conf.u_sta_hfid = "station5"
-sta_AVLN1_station5_conf.avln_hfid = "AVLN1"
-sta_AVLN1_station5_conf.sl = 1
-sta_AVLN1_station5_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-sta_AVLN1_station5_conf.snid = 0
-
-# Launching the stations
-sta_AVLN1_station1 = STACesar (maximus, config=sta_AVLN1_station1_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=5012)
-sta_AVLN1_station2 = STACesar (maximus, config=sta_AVLN1_station2_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=9092)
-sta_AVLN1_station3 = STACesar (maximus, config=sta_AVLN1_station3_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=9562)
-sta_AVLN1_station4 = STACesar (maximus, config=sta_AVLN1_station4_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=698)
-sta_AVLN1_station5 = STACesar (maximus, config=sta_AVLN1_station5_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=3012)
-
-# Wait assoc for 5 seconds
-maximus.wait(125000000)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-alloc_data_buffer (maximus, sta_AVLN1_station4)
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "10:11:12:13:14:15"
-frame.type = 0x4F50
-frame.payload = "289286715077871519312757214698304959415897137609895396006092"
-frame.send (maximus, sta_AVLN1_station1)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station1)
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-alloc_data_buffer (maximus, sta_AVLN1_station4)
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "673450417574418459711573450919907706696703493351555196258583"
-frame.send (maximus, sta_AVLN1_station2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station1)
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-alloc_data_buffer (maximus, sta_AVLN1_station4)
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "30:33:32:33:34:35"
-frame.type = 0x4F50
-frame.payload = "137017451901645966359926781505160371781599604157657949752439"
-frame.send (maximus, sta_AVLN1_station3)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station1)
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "40:44:42:43:44:45"
-frame.type = 0x4F50
-frame.payload = "784406247707311905877495223463014965152325779780590270192998"
-frame.send (maximus, sta_AVLN1_station4)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station1)
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-alloc_data_buffer (maximus, sta_AVLN1_station4)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "50:55:52:53:54:55"
-frame.type = 0x4F50
-frame.payload = "041460671252129570790878957016647745390834318284623705366408"
-frame.send (maximus, sta_AVLN1_station5)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "50:55:52:53:54:55"
-frame.src = "10:11:12:13:14:15"
-frame.type = 0x4F50
-frame.payload = "579181020808442866434701068850767911926819012556262052694255156518730502579731361423035789314658162091"
-frame.send (maximus, sta_AVLN1_station1)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "50:55:52:53:54:55"
-frame.src = "40:44:42:43:44:45"
-frame.type = 0x4F50
-frame.payload = "2189875069019407283790178642992528409538766528119906845986009380465065877381000929672742762173110776550793539972747000945894187431390040560543186364282760540046845814417135022912733686849575328105941141668092880982533678232797940485842481230355272993257127558177737707606509550949756817723388229214122948659101738129774705210067220585175059974554485421193766125740130170093808059159101745526450079023470487990150670407717943252019349694095586468294368665705816004806747819778901536149050385323013721195335659365595676200605269450593788830617217965377596430216317325947759557984610496588333639227236505230576220896030579195011098835971389941341628637325058199104730276258639734123596463266601"
-frame.send (maximus, sta_AVLN1_station4)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "50:55:52:53:54:55"
-frame.src = "30:33:32:33:34:35"
-frame.type = 0x4F50
-frame.payload = "662933007707973802006507202607052474044669061190761994605455068543734995127785927343632857321233307466747479296368091054152997110699925020046450609626090065298811978248335425123972502594727090402239140497192494985760683145793005266817587217395534656985961275874084429707938186666633155080569439340245888687017918682750304058210692807837978644322003411483180731749993856244304299280019405000520253065090686426242473844401750267700720828345400918713718946098250577810965595516206245373931776042724070355556059931389202911266272141464091530699438728809547673761875902236763731002659454086758910224875353313267357478420170454980285016847493556571376496822344676355249797977899949613809413056065085779744054832879094879908365659328233546691776858195148513878968071224094824114098526243881467597329199627853464042084527878700993376736961209291362018901850617488001548536914779525178753666476683605364857959073576427302040883845972597251573217729075031590359213943253450990621223270571514309487679771701504612081761237434697434993909498032993130703772"
-frame.send (maximus, sta_AVLN1_station3)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-
-frame = Eth()
-frame.dst = "30:33:32:33:34:35"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "5341750070432816624651880575420927747985102202752411915723959766750878233619162124702002093778457762109853858644371920025118899193728586934615969085726223133078743323229868929908445498647008662643228907434759161651367304951356251043817310696072199153814403905622041513688476043332509077756212889631948053946344785277874591962765253729551996404023779003461672581234088176611813184489279783795358907502579153657240026150437722398878420676167531966351092439192454933651772606594101988509336066682516181121632710451977275160689191518369718958718655333215834617443880440984573589909417868057134413195203772380126465814569277075822845077076584917579101036086733201881048782316743820860123981385840025379493152511736261900249207780886385118635527449382634168043545895284102809829686214228955416287725861067555177486195312636524949379256903876921548993068663236761120345834821749245292704589874440140728819507016185093590835518271650602702850172110647633952856159781857057042850135969666033220541518401612065689970944735826898222057517579757643825633794888208074659832532665573643951273745"
-frame.send (maximus, sta_AVLN1_station2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station3)
-
-frame = Eth()
-frame.dst = "30:33:32:33:34:35"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "361903999349365617604538209944887455768828199312573490409127327388011231265002767686363548545027682010230647401190466315337509748675884002212676366100800391305256108380539848392377735406509440333490326553054665195653117757280962161011076172149712046045157787876710279220675597724608927338815061622748531481864493544321100730310657592686308814804005167606144471506946310180264736887060858468930485228819767363500426345919374183630080680898852968783092639224914316292175317341667646186448457753434523210684"
-frame.send (maximus, sta_AVLN1_station2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-
-frame = Eth()
-frame.dst = "20:22:22:23:24:25"
-frame.src = "50:55:52:53:54:55"
-frame.type = 0x4F50
-frame.payload = "4897827895512283458507104243424532575893852067169285734459712034075028848261166167740167226685661787858715914911491524408708031657332453570691928948283793021943680144520807251515412646122427031715745737465392011821361599796346425651600952962392992882965443592573414135826055241945645492408620221415784688957100278664335717053316150283041549238833274256270551956152062070469314087808671279028204601105712820926105012331408306370014221626374456811104428617487485807600110820755624887707176084733225294313747366756823419597080648592414354151161306871151992440894812815800933515469999021351510407103143176927245604628070156460016151338139798927760469564163791777844"
-frame.send (maximus, sta_AVLN1_station5)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station2)
-
-frame = Eth()
-frame.dst = "20:22:22:23:24:25"
-frame.src = "40:44:42:43:44:45"
-frame.type = 0x4F50
-frame.payload = "47412528558991705652871722327111715944309592782730154993907273988311251047302778764760312809312560420314066782876882698775370447009817681069343806561179435560802453538102985691300931982740191965326665539430202068478239876759451291540234439867468049599799589047782385050079493089011115003548240824909169239573564676956289616837854882368375495620666664757616209976662511919557155458601516301392211062473251952442663198152728962242550056023508903532422417415714036400469224460873659956333625538064103450934176322757591315852327184795074870288363823819361681592"
-frame.send (maximus, sta_AVLN1_station4)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "50:55:52:53:54:55"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "76299391063024385300806405147827273105808992329252958691958053261164628001327531524576503190887193907024985120193138038512928487950909899234907974132"
-frame.send (maximus, sta_AVLN1_station2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station4)
-
-frame = Eth()
-frame.dst = "40:44:42:43:44:45"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "1663757774573801596818771251832509671340791597250058351438065220574477453335088783245817788111138434621687887925229070078558039554836444673489799104631621089283688204269647694396262059318760564897610624964695278283320301658006809611278926630999081184083964263098799920381041495720021045847214161346081384666006952729409135107940763577542855663116681851962821577093098854226872669889402546361242650124371383468075660017808780144310823862576854980266717735571373771324166562691922233138147914745180883277500652454730237559507672134612141110272246382494686179815174571626912585239627138553227106190090665192506710169828194978421770267036510275440837916739639922672576514418645018083670915761971741659086879745974653216772027898355116272447680315566428249072665090816648470884333776409083380156842080880557161743993021080623617933207365084882653915203142224583588651582498798947913745735820779674438909148342216263065894088318038843664384596943960395735380571258644924953114862690274371740564286152580384130842915048688764994146944201005516487526052183712781920926413128514114958296036762550494518689128824025475609703300777722116863124868090535402146821122994277214359401192123659578748466027950518512443980910199267243915263841054289336568331109546199744744600946356490473886367835780219"
-frame.send (maximus, sta_AVLN1_station2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_AVLN1_station5)
-
-frame = Eth()
-frame.dst = "50:55:52:53:54:55"
-frame.src = "30:33:32:33:34:35"
-frame.type = 0x4F50
-frame.payload = "850279247326246696857190678680647925654201016823026439240371082007324512175861267775813891144072406969329316146914331621718886165687200512395070872447738122628365719002573802"
-frame.send (maximus, sta_AVLN1_station3)
-
-# Wait assoc for 5 seconds
-maximus.wait(125000000)
-
-# Removing station from AVLN AVLN1
-sta_AVLN1_station1.remove()
-sta_AVLN1_station2.remove()
-sta_AVLN1_station3.remove()
-sta_AVLN1_station4.remove()
-sta_AVLN1_station5.remove()
-
-
diff --git a/cesar/maximus/common/tools/csg/core/test/restest.py b/cesar/maximus/common/tools/csg/core/test/restest.py
deleted file mode 100644
index fb301ac939..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/restest.py
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/usr/bin/env python
-
-#############################################################################
-# hello it's only a test to verify the split of the line when it is greater #
-# than 78 characters. #
-#############################################################################
-
-import sys
-sys.path.append('../../../../../../maximus/python/obj')
-sys.path.append('../../../../../../maximus/python')
-sys.path.append('../../../../../../maximus/python/lib/cesar')
-
-from interface import *
-from string import *
-from struct import *
-from maximus import *
-from sta_cesar import STACesar
-import unittest
-
-maximus = Maximus()
-maximus.init (sys.argv + ['-e', 'station.elf'])
-
-# Creating the AVLN avln1
-
-# Configuration of the station sta1
-sta_sta1_conf = Config ()
-sta_sta1_conf.mac_address = "10:11:12:13:14:15"
-sta_sta1_conf.cco_preference = False
-sta_sta1_conf.was_cco = False
-sta_sta1_conf.npw = "avln1passwd"
-sta_sta1_conf.dpw = "STA1"
-sta_sta1_conf.m_sta_hfid = "STA1"
-sta_sta1_conf.u_sta_hfid = "sta1"
-sta_sta1_conf.avln_hfid = "avln1"
-sta_sta1_conf.sl = 1
-sta_sta1_conf.snid = 0
-sta_sta1_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1143)
-
-# Configuration of the station sta2
-sta_sta2_conf = Config ()
-sta_sta2_conf.mac_address = "20:22:22:23:24:25"
-sta_sta2_conf.cco_preference = False
-sta_sta2_conf.was_cco = False
-sta_sta2_conf.npw = "avln1passwd"
-sta_sta2_conf.dpw = "STA2"
-sta_sta2_conf.m_sta_hfid = "STA2"
-sta_sta2_conf.u_sta_hfid = "sta2"
-sta_sta2_conf.avln_hfid = "avln1"
-sta_sta2_conf.sl = 1
-sta_sta2_conf.snid = 0
-sta_sta2_conf.tonemask = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1143)
-
-# Launching the stations
-sta_avln1_sta1 = STACesar (maximus, config=sta_sta1_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=2636)
-sta_avln1_sta2 = STACesar (maximus, config=sta_sta2_conf, mme_buffer_nb=1, debug=False, config_mode="MME", seed=1768)
-
-# Wait assoc for 5 seconds
-maximus.wait(125000000)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_avln1_sta2)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "10:11:12:13:14:15"
-frame.type = 0x4F50
-frame.payload = "835255787128878471297549475555929591553509140904086259795613"
-frame.send (maximus, sta_avln1_sta1)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_avln1_sta1)
-
-frame = Eth()
-frame.dst = "FF:FF:FF:FF:FF:FF"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "375242443255668409820766720130508918780137943931234118563905"
-frame.send (maximus, sta_avln1_sta2)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_avln1_sta2)
-
-frame = Eth()
-frame.dst = "20:22:22:23:24:25"
-frame.src = "10:11:12:13:14:15"
-frame.type = 0x4F50
-frame.payload = "69929489845765458205635251346852027227151691099522666056376764587346345593518733149093506839601975142687576261036618905486885"
-frame.send (maximus, sta_avln1_sta1)
-
-# Sending a frame
-alloc_data_buffer (maximus, sta_avln1_sta1)
-
-frame = Eth()
-frame.dst = "10:11:12:13:14:15"
-frame.src = "20:22:22:23:24:25"
-frame.type = 0x4F50
-frame.payload = "586372510000248171070116048497121270447576890433652729430539499990130706744551595152316474910799591750308072815800345742795572708571013668314008813111366612076531706223453341745100876337701113997231642652615936656807856952380134469357825018100386344440234063501637621261576041369321101516935683352333858389108874526862060692013200129781230822699750534075749438737089484741274113328615513707770523115239571125926689887603567515188944375956502858228121363339056479956185288716648986969698793296415265484006242436879013203373944361258992886302085430767808963623671524082964886579316756042393455286556368904115102557825583847873181782823518297872807872583279250313805513021295950707717802803741882008316663466309936910375239152136692548310221396960606804701811093384430444377730840078880115315247773412490060316323399144200449430780893516547352240148394494927928588368833670590856108390225963508803766375027659426079686219593597662381325894326489669182621461132759451031002456598447870681653780521111385620030436893313834077315885717184721919764731376835529193991626938273146315733578151895087983461858064081302810640440456163502412599936831190187949937640414271594439618695634291496796653244544184107523037384477584473303178526862994226151941382666866085336025981576101496089058665476493116669544247265645577800075379043128685313457339420859409028051191163837901917712607191946987359840104707353787789103593831061850176092216160968595660920429689347960803953236429264582545660994780230647707837139505012"
-frame.send (maximus, sta_avln1_sta2)
-
-# Removing station from AVLN avln1
-sta_avln1_sta1.remove()
-sta_avln1_sta2.remove()
-
-
diff --git a/cesar/maximus/common/tools/csg/core/test/script.py b/cesar/maximus/common/tools/csg/core/test/script.py
deleted file mode 100644
index 7a78eb0f43..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/script.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import sys
-sys.path.append ('..')
-
-from csgcore import *
-
-csg = csgCore ()
-
-# adding the script path + name file.
-csg.set_script_name (os.getcwd() + "/core_script.py")
-
-
-# Adding a description.
-description = "This is a test of generation of the Maximus script."
-csg.set_test_description (description)
-
-# Creating an AVLN.
-avln1 = csg.avln_add ("Homeplug_AVLN1", "AVLN1")
-
-# Adding some station to the AVLN.
-sta1 = avln1.sta_add ("10:11:12:13:14:15", False, False, "Homeplug_Station1", "spidcom_spc300_sta1", "station1", 1, False)
-sta2 = avln1.sta_add ("20:22:22:23:24:25", False, False, "Homeplug_Station2", "spidcom_spc300_sta2", "station2", 1, False)
-sta3 = avln1.sta_add ("30:33:32:33:34:35", False, False, "Homeplug_Station3", "spidcom_spc300_sta3", "station3", 1, False)
-sta4 = avln1.sta_add ("40:44:42:43:44:45", False, False, "Homeplug_Station4", "spidcom_spc300_sta4", "station4", 1, False)
-sta5 = avln1.sta_add ("50:55:52:53:54:55", False, False, "Homeplug_Station5", "spidcom_spc300_sta5", "station5", 1, False)
-
-packets_list = csg.avln_create_traffic (avln1, 10)
-
-csg.process (packets_list)
diff --git a/cesar/maximus/common/tools/csg/core/test/sta.py b/cesar/maximus/common/tools/csg/core/test/sta.py
deleted file mode 100644
index 63ad18a08e..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/sta.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-sys.path.append('../');
-
-import unittest
-
-from csgstation import *
-
-
-class TestStation(unittest.TestCase):
-
- def setUp (self):
- pass
-
- def tearDown (self):
- pass
-
- def testCreateSta (self):
- mac_addr = "10:11:12:13:14:15"
- cco_pref = True
- was_cco = False
- dpw = "device 1"
- mhfid = "Sta1"
- uhfid = "HP"
- sl = 1
- debug = False
- tm = (85,139,167,214,225,282,302,409,419,569,591,736,748,856,882,1015,1027,1143,1535)
-
- sta = csgSta (mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug)
-
- self.failUnless (sta.get_mac_addr() == mac_addr)
- self.failUnless (sta.get_cco_preference() == cco_pref)
- self.failUnless (sta.get_was_cco () == was_cco)
- self.failUnless (sta.get_dpw () == dpw)
- self.failUnless (sta.get_manufacturer_hfid () == mhfid)
- self.failUnless (sta.get_user_hfid () == uhfid)
- self.failUnless (sta.get_security_level () == sl)
- self.failUnless (sta.get_debug () == debug)
- self.failUnless (sta.get_tonemask() == tm)
-
-suite = unittest.TestLoader().loadTestsFromTestCase(TestStation)
-testResult = unittest.TextTestRunner(verbosity=2).run(suite)
-
diff --git a/cesar/maximus/common/tools/csg/core/test/writer.py b/cesar/maximus/common/tools/csg/core/test/writer.py
deleted file mode 100644
index 4281f5eb18..0000000000
--- a/cesar/maximus/common/tools/csg/core/test/writer.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-sys.path.append ('..')
-import os
-
-from csgscriptwriter import *
-from csgavln import *
-from csgpacket import *
-
-w = csgScriptWriter (os.getcwd() + "/restest.py")
-w.set_description ("hello it's only a test to verify the split of the line when it is greater than 78 characters.")
-
-w.header()
-w.create_maximus ("station.elf")
-
-avln = csgAvln ("avln1passwd", "avln1")
-sta1 = avln.sta_add ("10:11:12:13:14:15", False, False, "STA1", "STA1", "sta1", 1, False)
-sta2 = avln.sta_add ("20:22:22:23:24:25", False, False, "STA2", "STA2", "sta2", 1, False)
-w.create_avln (avln)
-w.launch_stas (avln)
-w.maximus_wait (5)
-
-w.maximus_send_braodcast_data (avln)
-
-packet_list = list()
-packet = csgPacket(avln, sta1, 125, sta2)
-packet_list.append(packet)
-packet = csgPacket(avln, sta2, 1500, sta1)
-packet_list.append(packet)
-
-# Add the Frames.
-for i in range (0, len (packet_list)):
- avln = packet_list[i].get_avln()
- sta_src = packet_list[i].get_sta_src ()
- sta_dest = packet_list[i].get_sta_dest ()
- size = packet_list[i].get_payload_size ()
- w.maximus_send_frame (avln, sta_src, size, sta_dest)
-
-avln_list = list()
-avln_list.append (avln)
-w.ends (avln_list)
-w.get_script ()
-w.write()
diff --git a/cesar/maximus/common/tools/csg/doc/Makefile b/cesar/maximus/common/tools/csg/doc/Makefile
deleted file mode 100644
index 612152721a..0000000000
--- a/cesar/maximus/common/tools/csg/doc/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PAGES= csg_spec.txt
-
-ODT=$(PAGES:%.txt=%.odt)
-HTML=$(PAGES:%.txt=%.html)
-
-all: $(ODT) $(HTML)
-
-odt: $(ODT)
-
-html: $(HTML)
-
-%.odt: %.txt
- rst2odt.py $< $@
-
-%.html: %.txt
- rst2html $< $@
-
-clean:
- rm -f $(ODT)
- rm -f $(HTML)
diff --git a/cesar/maximus/common/tools/csg/doc/csg.odt b/cesar/maximus/common/tools/csg/doc/csg.odt
deleted file mode 100644
index 7572e13778..0000000000
--- a/cesar/maximus/common/tools/csg/doc/csg.odt
+++ /dev/null
Binary files differ
diff --git a/cesar/maximus/common/tools/csg/doc/csg.xmi b/cesar/maximus/common/tools/csg/doc/csg.xmi
deleted file mode 100644
index 2dc0c83708..0000000000
--- a/cesar/maximus/common/tools/csg/doc/csg.xmi
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2008-10-17T17:35:35" xmi.version="1.2" >
- <XMI.header>
- <XMI.documentation>
- <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
- <XMI.exporterVersion>1.5.5</XMI.exporterVersion>
- <XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
- </XMI.documentation>
- <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
- </XMI.header>
- <XMI.content>
- <UML:Model isSpecification="false" isLeaf="false" isRoot="false" xmi.id="m1" isAbstract="false" name="UML Model" >
- <UML:Namespace.ownedElement>
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="2" isRoot="false" isAbstract="false" name="folder" />
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="13" isRoot="false" isAbstract="false" name="datatype" />
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="2" isRoot="false" isAbstract="false" name="folder" />
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="13" isRoot="false" isAbstract="false" name="datatype" />
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="2" isRoot="false" isAbstract="false" name="folder" />
- <UML:Stereotype isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="13" isRoot="false" isAbstract="false" name="datatype" />
- <UML:Model stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="1" isRoot="false" isAbstract="false" name="Logical View" >
- <UML:Namespace.ownedElement>
- <UML:Package stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="10" isRoot="false" isAbstract="false" name="Datatypes" >
- <UML:Namespace.ownedElement>
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="12" isRoot="false" isAbstract="false" name="int" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="14" isRoot="false" isAbstract="false" name="char" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="15" isRoot="false" isAbstract="false" name="boolean" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="16" isRoot="false" isAbstract="false" name="float" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="17" isRoot="false" isAbstract="false" name="double" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="18" isRoot="false" isAbstract="false" name="byte" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="19" isRoot="false" isAbstract="false" name="short" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="20" isRoot="false" isAbstract="false" name="long" />
- <UML:DataType stereotype="13" isSpecification="false" isLeaf="false" visibility="public" namespace="10" xmi.id="21" isRoot="false" isAbstract="false" name="String" />
- </UML:Namespace.ownedElement>
- </UML:Package>
- <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="22" isRoot="false" isAbstract="false" name="csgCore" >
- <UML:Classifier.feature>
- <UML:Attribute comment="The script name of the Maximus script with the Path." isSpecification="false" visibility="private" xmi.id="25" type="21" name="script_name" />
- <UML:Attribute comment="The description of the test." isSpecification="false" visibility="private" xmi.id="26" type="21" name="test_description" />
- <UML:Operation isSpecification="false" isLeaf="false" visibility="public" xmi.id="59" isRoot="false" isAbstract="false" isQuery="false" name="avln_add" >
- <UML:BehavioralFeature.parameter>
- <UML:Parameter kind="return" xmi.id="125" type="23" />
- <UML:Parameter comment="The network password." isSpecification="false" visibility="private" xmi.id="60" value="" type="21" name="npw" />
- <UML:Parameter comment="AVLN HFID." isSpecification="false" visibility="private" xmi.id="61" value="" type="21" name="ahfid" />
- <UML:Parameter comment="Number of stations it handles." isSpecification="false" visibility="private" xmi.id="62" value="" type="12" name="nb_sta" />
- </UML:BehavioralFeature.parameter>
- </UML:Operation>
- <UML:Operation comment="Remove an AVLN." isSpecification="false" isLeaf="false" visibility="public" xmi.id="65" isRoot="false" isAbstract="false" isQuery="false" name="avln_remove" >
- <UML:BehavioralFeature.parameter>
- <UML:Parameter comment="The AVLN to remove." isSpecification="false" visibility="private" xmi.id="66" value="" type="23" name="avln" />
- </UML:BehavioralFeature.parameter>
- </UML:Operation>
- </UML:Classifier.feature>
- </UML:Class>
- <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="23" isRoot="false" isAbstract="false" name="csgAvln" >
- <UML:Classifier.feature>
- <UML:Attribute comment="The network password." isSpecification="false" visibility="private" xmi.id="47" type="21" name="npw" />
- <UML:Attribute comment="The Human Identifier." isSpecification="false" visibility="private" xmi.id="48" type="21" name="hfid" />
- <UML:Operation comment="Add a station to the AVLN." isSpecification="false" isLeaf="false" visibility="public" xmi.id="91" isRoot="false" isAbstract="false" isQuery="false" name="sta_add" >
- <UML:BehavioralFeature.parameter>
- <UML:Parameter comment="The station mac address." isSpecification="false" visibility="private" xmi.id="92" value="" type="21" name="mac_addr" />
- <UML:Parameter comment="The CCo preference." isSpecification="false" visibility="private" xmi.id="94" value="" type="15" name="cco_preference" />
- <UML:Parameter comment="Was CCo." isSpecification="false" visibility="private" xmi.id="98" value="" type="15" name="was_cco" />
- <UML:Parameter comment="The device password." isSpecification="false" visibility="private" xmi.id="100" value="" type="21" name="dpw" />
- <UML:Parameter comment="Manufacturer Hifid." isSpecification="false" visibility="private" xmi.id="102" value="" type="21" name="mhfid" />
- <UML:Parameter comment="The user HFID." isSpecification="false" visibility="private" xmi.id="104" value="" type="21" name="uhfid" />
- <UML:Parameter comment="The tonemask" isSpecification="false" visibility="private" xmi.id="106" value="" type="56" name="tonemask" />
- <UML:Parameter comment="The security level." isSpecification="false" visibility="private" xmi.id="108" value="" type="15" name="security_level" />
- <UML:Parameter comment="Debuging ..." isSpecification="false" visibility="private" xmi.id="110" value="" type="15" name="debug" />
- </UML:BehavioralFeature.parameter>
- </UML:Operation>
- <UML:Operation comment="Remove a station from the AVLN." isSpecification="false" isLeaf="false" visibility="public" xmi.id="117" isRoot="false" isAbstract="false" isQuery="false" name="sta_remove" >
- <UML:BehavioralFeature.parameter>
- <UML:Parameter comment="The station mac address to remove." isSpecification="false" visibility="private" xmi.id="118" value="" type="21" name="mac_address" />
- </UML:BehavioralFeature.parameter>
- </UML:Operation>
- </UML:Classifier.feature>
- </UML:Class>
- <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="24" isRoot="false" isAbstract="false" name="csgSta" >
- <UML:Classifier.feature>
- <UML:Attribute comment="The Station mac address." isSpecification="false" visibility="private" xmi.id="49" type="21" name="mac_address" />
- <UML:Attribute comment="The CCo preference." isSpecification="false" visibility="private" xmi.id="50" type="15" name="cco_preference" />
- <UML:Attribute comment="Was CCo boolean." isSpecification="false" visibility="private" xmi.id="51" type="15" name="was_cco" />
- <UML:Attribute comment="The devide password." isSpecification="false" visibility="private" xmi.id="52" type="21" name="device_password" />
- <UML:Attribute comment="The manufacturer Identifier." isSpecification="false" visibility="private" xmi.id="53" type="21" name="mhfid" />
- <UML:Attribute comment="The user identifier." isSpecification="false" visibility="private" xmi.id="54" type="21" name="uhfid" />
- <UML:Attribute comment="The tone mask." isSpecification="false" visibility="private" xmi.id="55" type="56" name="tone_mask" />
- <UML:Attribute comment="The security level." isSpecification="false" visibility="private" xmi.id="57" type="15" name="security_level" />
- <UML:Attribute comment="The debug status." isSpecification="false" visibility="private" xmi.id="58" type="15" name="debug" />
- </UML:Classifier.feature>
- </UML:Class>
- <UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="1" xmi.id="56" isRoot="false" isAbstract="false" name="int []" />
- <UML:Association isSpecification="false" visibility="public" namespace="1" xmi.id="33" name="" >
- <UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="34" aggregation="aggregate" type="23" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="35" aggregation="none" type="22" name="" />
- </UML:Association.connection>
- </UML:Association>
- <UML:Association isSpecification="false" visibility="public" namespace="1" xmi.id="33" name="" >
- <UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="34" aggregation="aggregate" type="23" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="35" aggregation="none" type="22" name="" />
- </UML:Association.connection>
- </UML:Association>
- <UML:Association isSpecification="false" visibility="public" namespace="1" xmi.id="33" name="" >
- <UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="34" aggregation="aggregate" type="22" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="35" aggregation="none" type="23" name="" multiplicity="*" />
- </UML:Association.connection>
- </UML:Association>
- <UML:Association isSpecification="false" visibility="public" namespace="1" xmi.id="36" name="" >
- <UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="37" aggregation="aggregate" type="23" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="38" aggregation="none" type="24" name="" multiplicity="*" />
- </UML:Association.connection>
- </UML:Association>
- </UML:Namespace.ownedElement>
- <XMI.extension xmi.extender="umbrello" >
- <diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" linewidth="0" zoom="81" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="1180" snapy="10" showatts="1" xmi.id="11" documentation="" type="1" showops="1" showpackage="0" name="class diagram" localid="900000" showstereotype="0" showscope="1" snapcsgrid="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="1020" >
- <widgets>
- <classwidget usesdiagramfillcolour="0" width="361" showattsigs="601" usesdiagramusefillcolour="0" x="167" y="31" showopsigs="601" linewidth="none" fillcolour="#ffffc0" height="75" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="22" showoperations="1" showpackage="0" showscope="1" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
- <classwidget usesdiagramfillcolour="0" width="1034" showattsigs="601" usesdiagramusefillcolour="0" x="2" y="218" showopsigs="601" linewidth="none" fillcolour="#ffffc0" height="75" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="23" showoperations="1" showpackage="0" showscope="1" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
- <classwidget usesdiagramfillcolour="0" width="164" showattsigs="601" usesdiagramusefillcolour="0" x="213" y="449" showopsigs="601" linewidth="none" fillcolour="#ffffc0" height="157" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="24" showoperations="1" showpackage="0" showscope="1" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
- </widgets>
- <messages/>
- <associations>
- <assocwidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" linewidth="none" widgetbid="23" widgetaid="22" xmi.id="33" linecolor="none" >
- <linepath>
- <startpoint startx="347" starty="106" />
- <endpoint endx="519" endy="218" />
- <point x="385" y="137" />
- </linepath>
- <floatingtext usesdiagramfillcolour="1" width="32" usesdiagramusefillcolour="1" x="319" y="107" linewidth="none" posttext="" role="701" fillcolour="none" height="32" usefillcolor="1" pretext="" isinstance="0" xmi.id="40" text="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
- <floatingtext usesdiagramfillcolour="1" width="32" usesdiagramusefillcolour="1" x="511" y="181" linewidth="none" posttext="" role="702" fillcolour="none" height="32" usefillcolor="1" pretext="" isinstance="0" xmi.id="42" text="*" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
- </assocwidget>
- <assocwidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" linewidth="none" widgetbid="24" widgetaid="23" xmi.id="36" linecolor="none" >
- <linepath>
- <startpoint startx="519" starty="293" />
- <endpoint endx="295" endy="449" />
- </linepath>
- <floatingtext usesdiagramfillcolour="1" width="32" usesdiagramusefillcolour="1" x="512" y="298" linewidth="none" posttext="" role="701" fillcolour="none" height="32" usefillcolor="1" pretext="" isinstance="0" xmi.id="44" text="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
- <floatingtext usesdiagramfillcolour="1" width="32" usesdiagramusefillcolour="1" x="270" y="412" linewidth="none" posttext="" role="702" fillcolour="none" height="32" usefillcolor="1" pretext="" isinstance="0" xmi.id="46" text="*" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
- </assocwidget>
- </associations>
- </diagram>
- </diagrams>
- </XMI.extension>
- </UML:Model>
- <UML:Model stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="3" isRoot="false" isAbstract="false" name="Use Case View" >
- <UML:Namespace.ownedElement/>
- </UML:Model>
- <UML:Model stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="4" isRoot="false" isAbstract="false" name="Component View" >
- <UML:Namespace.ownedElement/>
- </UML:Model>
- <UML:Model stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="5" isRoot="false" isAbstract="false" name="Deployment View" >
- <UML:Namespace.ownedElement/>
- </UML:Model>
- <UML:Model stereotype="2" isSpecification="false" isLeaf="false" visibility="public" namespace="m1" xmi.id="6" isRoot="false" isAbstract="false" name="Entity Relationship Model" >
- <UML:Namespace.ownedElement/>
- </UML:Model>
- </UML:Namespace.ownedElement>
- </UML:Model>
- </XMI.content>
- <XMI.extensions xmi.extender="umbrello" >
- <docsettings viewid="11" documentation="" uniqueid="125" />
- <listview>
- <listitem open="1" type="800" label="Views" >
- <listitem open="1" type="801" id="1" >
- <listitem open="0" type="807" id="11" label="class diagram" />
- <listitem open="1" type="813" id="23" >
- <listitem open="0" type="814" id="47" />
- <listitem open="0" type="814" id="48" />
- <listitem open="0" type="815" id="91" />
- <listitem open="0" type="815" id="117" />
- </listitem>
- <listitem open="1" type="813" id="22" >
- <listitem open="0" type="814" id="25" />
- <listitem open="0" type="814" id="26" />
- <listitem open="0" type="815" id="59" />
- <listitem open="0" type="815" id="65" />
- </listitem>
- <listitem open="1" type="813" id="24" >
- <listitem open="0" type="814" id="49" />
- <listitem open="0" type="814" id="50" />
- <listitem open="0" type="814" id="51" />
- <listitem open="0" type="814" id="52" />
- <listitem open="0" type="814" id="53" />
- <listitem open="0" type="814" id="54" />
- <listitem open="0" type="814" id="55" />
- <listitem open="0" type="814" id="57" />
- <listitem open="0" type="814" id="58" />
- </listitem>
- <listitem open="1" type="813" id="56" />
- <listitem open="0" type="830" id="10" >
- <listitem open="1" type="829" id="21" />
- <listitem open="1" type="829" id="15" />
- <listitem open="1" type="829" id="18" />
- <listitem open="1" type="829" id="14" />
- <listitem open="1" type="829" id="17" />
- <listitem open="1" type="829" id="16" />
- <listitem open="1" type="829" id="12" />
- <listitem open="1" type="829" id="20" />
- <listitem open="1" type="829" id="19" />
- </listitem>
- </listitem>
- <listitem open="1" type="802" id="3" />
- <listitem open="1" type="821" id="4" />
- <listitem open="1" type="827" id="5" />
- <listitem open="1" type="836" id="6" />
- </listitem>
- </listview>
- <codegeneration>
- <codegenerator language="Java" />
- </codegeneration>
- </XMI.extensions>
-</XMI>
diff --git a/cesar/maximus/common/tools/csg/doc/csg_spec.txt b/cesar/maximus/common/tools/csg/doc/csg_spec.txt
deleted file mode 100644
index d013450a8e..0000000000
--- a/cesar/maximus/common/tools/csg/doc/csg_spec.txt
+++ /dev/null
@@ -1,401 +0,0 @@
-Cesar Script Generator for Maximus.
-===================================
-
-Introduction
-------------
-
-Forewords
-"""""""""
-
-This document contains Maximus Cesar Script Generator for Maximus. Its goals are:
-
- * Generate scripts for the Maximus simulator.
-
-.. contents::
-
-Acronyms
-""""""""
-
-+---------------+---------------------------------+
-| CSG | Cesar Script Generator |
-+---------------+---------------------------------+
-| HFID | User Friendly Human Identifier |
-+---------------+---------------------------------+
-
-General Description
--------------------
-
-Objective
-"""""""""
-
-The CSG is a tool to generate and configure AVLN for Maximus tests.
-
-The objective is to configure all the AVLN and the station each one contains.
-
-The station with the different configuration of the Cesar stations.
-
-
-Architecture
-""""""""""""
-
-The architecture of the application is the following one:
-
-* csgCore: The core application.
-
- * csgAvln : The class containing the information which defines an AVLN.
-
- * csgSta : The class containing the information which defines the station.
-
- * csgPacket : The class containing all the data packets to send.
-
- * csgWriter : The class Maximus script writer.
-
-* csgGui: The graphical interface which shall allow the user to configure the test.
-
-.. Hint:: The GUI interface is not actually done and is not necessary to use the application.
-
-Classes
--------
-
-CSGCore
-"""""""
-
-Script name:
-
- It shall request to the user the name of the script to write. The result shall
- be a full Maximus python script including the all the libraries necessary to
- do the test.
-
-Test description:
-
- A fields to explain the objective of the script shall be provide. This allows
- any user to understand the objective of the part tested in the script.
-
-AVLN:
-
-
- The CSG shall request the number of AVLN the final Maximus script shall
- handle. It shall handle the following data:
-
- - Network password
- - AVLN Human Field Identifier.
- - Number of station it handles.
-
-Functions
-#########
-
-__init__ (self):
-
- The empty function.
-
-set_script_name (self, script_name):
-
- Set the name for the script, it shall contain the full path to generate the
- script.
-
-get_script_name (self):
-
- Get the script name.
-
-set_test_description (self, test_description):
-
- Set a description of the test, this description shall be write on 78
- characters lines at the beginning of the script and provide all the
- necessary information to explain the objective of the test.
-
-get_test_description (self):
-
- Get the description of the test.
-
-avln_add (self, npw, ahfid):
-
- Add an AVLN to the test, the NPW and the AHFID (avln hfid) are mandatory.
- The AHFID will be use as an identifier on the core application, and will be
- use to create all the station of it.
-
-process (self, station_exec = None, wait_sec = 5, packets_list):
-
- Create the core of the script:
-
- * Create a Maximus object.
- * Configure each station of each AVLN.
- * Launch all the station of all ALVN.
- * Request Maximus to wait X seconds, the default value is 5 seconds.
- * Request to each station to send a broadcast packet, mandatory to allow the station to discuss.
- * Program the data packets transmission provided by the csgCore.
-
-CSGAvln
-"""""""
-
-AVLN HFID:
-
- The AVLN Human Friendly identifier of the network.
- This HFID is the identifier of the network and no other AVLN in the core
- application shall have the same ID. For when the core application create an
- AVLN, the ahfid provided will be compare to all the other AVLN already
- present and shall return None if the AVLN already exists.
-
-NPW:
-
- The network password, it is use by all the station to generate the NMK and
- the NID.
-
-Functions
-#########
-
-__init__ (self, npw, ahfid):
-
- Create an AVLN and store the NPW and the AHFID.
-
-get_ahfid (self):
-
- Get the HFID of the AVLN.
-
-get_npw (self):
-
- Get the network password of the AVLN.
-
-get_nb_sta (self):
-
- Get the quantity of station already added to this AVLN.
-
-sta_add (self, mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug):
-
- Add a station to the AVLN.
- The mac_addr is the identifier of the station.
-
-sta_remove (self, mac_addr):
-
- Removes a station from the AVLN.
-
-CSGStation
-""""""""""
-
-MAC Address:
-
- The station Mac address.
-
-CCo preference:
-
- Setted to true if the user consider the station should be the CCo of the
- AVLN.
-
-Was CCo:
-
- Setted to true if the last the station was present in the AVLN it was CCo.
-
-Device Password:
-
- The device password, useful to configure the station by the medium.
-
-Manufacturer Human Friendly IDentifier:
-
- The Manufacturer HFID, it is setted by the user.
-
-User Human Friendly IDentifier:
-
- The user HFID, setted by the User.
-
-Security Level:
-
- Setted by the User, this impacts directly the NID computed by the station.
- The NID is compose of the hashed value of the NMK and the security level.
-
-Debug:
-
- Request the station to be in the debug mode at the start it the value is
- True.
-
-Tonemask:
-
- The tonemask the station shall use to discuss. A default one is setted by
- the core application.
-
-
-Functions
-#########
-
-__init__(self, mac_addr, cco_pref, was_cco, dpw, mhfid, uhfid, sl, debug):
-
- Create a station.
-
-get_mac_addr (self):
-
- Return the Mac Address store by the user.
-
-get_cco_preference(self):
-
- Return the CCo preference.
-
-get_was_cco (self):
-
- Return the CCo status the last time the station was present in a AVLN.
-
-get_dpw (self):
-
- Return the Device password of the station.
-
-get_manufacturer_hfid (self):
-
- Return the Manufacturer HFID.
-
-get_user_hfid (self):
-
- Return the User HFID.
-
-get_security_level (self):
-
- Return the security level.
-
-get_debug (self):
-
- Return the debug boolean.
-
-get_tonemask (self):
-
- Return the tonemask setted by the user of the default one.
-
-set_tonemask (self, tonemask):
-
- Set the tonemask provided.
-
-CSGPacket
-"""""""""
-
-AVLN:
-
- The AVLN, it is use to get the station from the Maximus script.
- In the Maximus script the station is identified as "sta_AHFID_UHFID" with
- the AHFID replace by the AVLN HFID and the UHFID by the User HFID.
-
-Station source:
-
- The station source mac address.
-
-Station destination:
-
- The destination station mac address. The destination station is not
- mandatory, if it is not provided the packet will be send using the Mac
- address broadcast.
-
-Payload size:
-
- The size of the payload, it will be filled with the values in a range of 0
- to 9 got from the python random generator.
-
-Functions
-#########
-
-__init__ (self, avln, sta_src, payload_size, sta_dest = None):
-
- Create the packet using the AVLN, the station source and the station
- destination with the payload size.
-
- .. Hint:: The sta_dest is configured as None by default, when no destination station is provided the destination mac address of the packet will be the broadcast one.
-
-get_avln (self):
-
- Get the AVLN.
-
-get_sta_src (self):
-
- Get the station source.
-
-get_sta_dest (self):
-
- Get the destination station.
-
-get_payload_size (self):
-
- Get the payload size.
-
-CSGScriptWriter
-"""""""""""""""
-
-Data:
-
- The all script is stored in this String until the write function is not
- called.
-
-File:
-
- The file name with its path.
-
-Functions
-#########
-
-__init__ (self, script_name):
-
- Initialise the writer with the script name.
-
-set_description (self, description):
-
- Set the description of the test.
-
-header (self):
-
- Set the header of the Maximus script i.e. Imports of the python libraries,
- configuration of the path.
-
-create_maximus (self, sta_executable):
-
- Add the Maximus object to the script.
-
-create_avlns (self, avlns):
-
- Call the create_avln function with all the AVLN.
-
-launch_stas(self, avln):
-
- Write to the script the Maximus request to launch the stations of the AVLN
- provided.
-
-maximus_wait (self, sec):
-
- Request Maximus to wait X seconds.
-
-maximus_send_frame (self, avln, sta_src, payload_len, sta_dest = None):
-
- Request Maximus to send a Frame:
-
- * AVLN: the AVLN in which the stations are present.
- * sta_src: The station source
- * sta_dest: The station destination. If this is not provided the frame is send as a broadcast one.
- * payload_size: The size of the payload to send.
-
-maximus_send_braodcast_data (self, avln):
-
- Request Maximus to send a Frame as broadcast from all the station of the
- AVLN.
-
-ends (self, avln_list):
-
- Remove all the station of all the AVLN present in the test.
-
-write (self):
-
- Write the script in the file.
-
-get_script (self):
-
- Get the script generated by the CSG.
-
-History
--------
-
-+---------+------------+----------+
-|Revision | Date | Comments |
-+---------+------------+----------+
-| B0 | 2008/10/21 | Creation |
-+---------+------------+----------+
-
-Internal History
-----------------
-
-+---------+------------+------------------------+
-|Revision | Date | Comments |
-+---------+------------+------------------------+
-| A0 | 2008/10/21 | NĂ©lio Laranjeiro (NL): |
-| | | |
-| | | * Creation |
-+---------+------------+------------------------+