![]() |
Open Kilda Java Documentation
|
Variables | |
string | MT_INFO = "org.openkilda.messaging.info.InfoMessage" |
string | MT_SWITCH = "org.openkilda.messaging.info.event.SwitchInfoData" |
string | MT_ISL = "org.openkilda.messaging.info.event.IslInfoData" |
string | bootstrapServer = 'kafka.pendev:9092' |
string | topic = 'kilda-test' |
producer = KafkaProducer(bootstrap_servers=bootstrapServer) | |
int | loopSize = 3 |
list | topology = [] |
dictionary | node = {} |
switch_id = n | |
int | linked_id_next = switch_id + 1 |
int | linked_id_prev = switch_id - 1 |
list | outgoing_relationships = [] |
dictionary | headers = {'Content-Type': 'application/json'} |
result_recv = requests.get('http://localhost', headers=headers) | |
recv_topo = result_recv.text | |
sent_topo = json.dumps(topology, default=lambda o: o.__dict__, sort_keys=True) | |
string create-simple-topology.bootstrapServer = 'kafka.pendev:9092' |
Definition at line 24 of file create-simple-topology.py.
dictionary create-simple-topology.headers = {'Content-Type': 'application/json'} |
Definition at line 74 of file create-simple-topology.py.
int create-simple-topology.linked_id_next = switch_id + 1 |
Definition at line 40 of file create-simple-topology.py.
int create-simple-topology.linked_id_prev = switch_id - 1 |
Definition at line 41 of file create-simple-topology.py.
int create-simple-topology.loopSize = 3 |
Definition at line 29 of file create-simple-topology.py.
string create-simple-topology.MT_INFO = "org.openkilda.messaging.info.InfoMessage" |
Definition at line 20 of file create-simple-topology.py.
string create-simple-topology.MT_ISL = "org.openkilda.messaging.info.event.IslInfoData" |
Definition at line 22 of file create-simple-topology.py.
string create-simple-topology.MT_SWITCH = "org.openkilda.messaging.info.event.SwitchInfoData" |
Definition at line 21 of file create-simple-topology.py.
dictionary create-simple-topology.node = {} |
Definition at line 35 of file create-simple-topology.py.
list create-simple-topology.outgoing_relationships = [] |
Definition at line 55 of file create-simple-topology.py.
create-simple-topology.producer = KafkaProducer(bootstrap_servers=bootstrapServer) |
Definition at line 27 of file create-simple-topology.py.
create-simple-topology.recv_topo = result_recv.text |
Definition at line 78 of file create-simple-topology.py.
Definition at line 76 of file create-simple-topology.py.
create-simple-topology.sent_topo = json.dumps(topology, default=lambda o: o.__dict__, sort_keys=True) |
Definition at line 79 of file create-simple-topology.py.
create-simple-topology.switch_id = n |
Definition at line 39 of file create-simple-topology.py.
string create-simple-topology.topic = 'kilda-test' |
Definition at line 25 of file create-simple-topology.py.
list create-simple-topology.topology = [] |
Definition at line 32 of file create-simple-topology.py.