glaciation package
Subpackages
- glaciation.cdu package
- Submodules
- glaciation.cdu.api module
CduAPIWrapperCduAPIWrapper.connectionsCduAPIWrapper.runAll()CduAPIWrapper.startSync()CduAPIWrapper.startMon()CduAPIWrapper.isSincronized()CduAPIWrapper.isMonitoring()CduAPIWrapper.stopSync()CduAPIWrapper.stopMon()CduAPIWrapper.writeVar()CduAPIWrapper.disconnect()CduAPIWrapper.disconnectAll()CduAPIWrapper.isMonitoring()CduAPIWrapper.isSincronized()CduAPIWrapper.isWriting()CduAPIWrapper.runAll()CduAPIWrapper.startMon()CduAPIWrapper.startSync()CduAPIWrapper.stopMon()CduAPIWrapper.stopSync()CduAPIWrapper.stopWriteVar()CduAPIWrapper.writeVar()
- glaciation.cdu.vardb module
VardbVarWrapperVardbVarWrapper.loadVars()VardbVarWrapper.readVar()VardbVarWrapper.forceVar()VardbVarWrapper.readVarQOk()VardbVarWrapper.readQuality()VardbVarWrapper.unforceVar()VardbVarWrapper.forceVarVardbVarWrapper.loadVars()VardbVarWrapper.readQualityVardbVarWrapper.readVarVardbVarWrapper.readVarQOkVardbVarWrapper.setSilence()VardbVarWrapper.unforceVarVardbVarWrapper.writeVar
VardbVarWrapper.self.jsonVardbVarWrapper.self.VARDB_LISTVardbVarWrapper.self.VARDBVardbVarWrapper.self.VARS
- Module contents
- glaciation.devices package
- glaciation.resources package
- glaciation.testing package
- glaciation.trdp package
Submodules
glaciation.helper module
- class glaciation.helper.SSHHelper(host, user, key=None, pwd='', port=22, disAlgorithms=None, timeout=3)[source]
Bases:
objectSSH Helper to run shh commands easily in remote devices
- Parameters:
host (string) – host address
user (string) – username
key (string) – user private key path (default is None)
pwd (string) – password (default is None)
port (int) – port number for the ssh connection (default is 22)
disAlgorithms (string) – If given, must be a dictionary mapping algorithm type to an iterable of algorithm identifiers, which will be disabled for the lifetime of the transport. Example for TSW: dict(pubkeys=[‘rsa-sha2-256’, ‘rsa-sha2-512’]) (default is None)
- Raises:
Exception – Error in connection
- glaciation.helper.mainTest(func)[source]
Decorator for main test function It will wrap the main test script like this:
Try:tgf.initTest() # log in a file the start of the testmainScript # execute main scripttgf.finishTestOk() # log in a file execution SUCCESSexcept Exception as e:print(traceback.format_exc()) # print tracebacktgf.finishTestNotOK(str(e)) # log in a file execution FAILEDexit(-1)
glaciation.networking module
- glaciation.networking.checkPortIsOpen(ip, port)[source]
Check if port is open in given address
- Parameters:
ip (string) – ip address
port (int) – port number
- Returns:
outputs – True if port is open else False
- Return type:
bool
- glaciation.networking.insert_packets(packets_per_second, src_ip, multicast_ip)[source]
Starts iperf process in a different thread to inject packets in the network
- Parameters:
packets_per_second (int) – Number of packet per seconds to be injected
src_ip (string) – source ip address
multicast_ip (string) – multicast ip address of the injected packets
glaciation.snmp module
- glaciation.snmp.get(target, oids, credentials, port=161, engine=SnmpEngine(snmpEngineID=<SnmpEngineID value object, tagSet <TagSet object, tags 0:0:4>, subtypeSpec <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ValueSizeConstraint object, consts 5, 32>>, encoding iso-8859-1, payload [0x80004fb8054cf80bc8]>), context=ContextData(contextEngineId=None, contextName=b''))[source]
- glaciation.snmp.get_bulk(target, oids, credentials, count, start_from=0, port=161, engine=SnmpEngine(snmpEngineID=<SnmpEngineID value object, tagSet <TagSet object, tags 0:0:4>, subtypeSpec <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ValueSizeConstraint object, consts 5, 32>>, encoding iso-8859-1, payload [0x80004fb8054cf845e8]>), context=ContextData(contextEngineId=None, contextName=b''))[source]
- glaciation.snmp.get_bulk_auto(target, oids, credentials, count_oid, start_from=0, port=161, engine=SnmpEngine(snmpEngineID=<SnmpEngineID value object, tagSet <TagSet object, tags 0:0:4>, subtypeSpec <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ValueSizeConstraint object, consts 5, 32>>, encoding iso-8859-1, payload [0x80004fb8054cf88088]>), context=ContextData(contextEngineId=None, contextName=b''))[source]
- glaciation.snmp.set(target, value_pairs, credentials, port=161, engine=SnmpEngine(snmpEngineID=<SnmpEngineID value object, tagSet <TagSet object, tags 0:0:4>, subtypeSpec <ConstraintsIntersection object, consts <ValueSizeConstraint object, consts 0, 65535>, <ValueSizeConstraint object, consts 5, 32>>, encoding iso-8859-1, payload [0x80004fb8054cf84bc8]>), context=ContextData(contextEngineId=None, contextName=b''))[source]