summaryrefslogtreecommitdiff
path: root/devel/py-bps-restpy/pkg-descr
blob: 74d0cba8a9d75d2e5b6ed5c1ef3a159443656326 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Module for interfacing to BreakingPoint appliance. Let's you connect to their
appliances for simulating real-world legitimate traffic, DDoS, exploits,
malware, and fuzzing.

# Login to BPS box
bps = BPS(bps_system, bpsuser, bpspass)
bps.login()

print("Load a canned test: ")
bps.testmodel.load(canned_test_name)

print("Reserve Ports")
for p in port_list:
    bps.topology.reserve([{'slot': slot_number, 'port': p, 'group': 2}])


print("Run test and Get Stats:")
test_id_json = bps.testmodel.run(modelname=canned_test_name, group=2)
testid = str( test_id_json["runid"] )
run_id = 'TEST-' + testid
print("Test Run Id: %s"%run_id)