Open Kilda Java Documentation
create-simple-topology.py File Reference

Go to the source code of this file.

Namespaces

 create-simple-topology
 

Variables

string create-simple-topology.MT_INFO = "org.openkilda.messaging.info.InfoMessage"
 
string create-simple-topology.MT_SWITCH = "org.openkilda.messaging.info.event.SwitchInfoData"
 
string create-simple-topology.MT_ISL = "org.openkilda.messaging.info.event.IslInfoData"
 
string create-simple-topology.bootstrapServer = 'kafka.pendev:9092'
 
string create-simple-topology.topic = 'kilda-test'
 
 create-simple-topology.producer = KafkaProducer(bootstrap_servers=bootstrapServer)
 
int create-simple-topology.loopSize = 3
 
list create-simple-topology.topology = []
 
dictionary create-simple-topology.node = {}
 
 create-simple-topology.switch_id = n
 
int create-simple-topology.linked_id_next = switch_id + 1
 
int create-simple-topology.linked_id_prev = switch_id - 1
 
list create-simple-topology.outgoing_relationships = []
 
dictionary create-simple-topology.headers = {'Content-Type': 'application/json'}
 
 create-simple-topology.result_recv = requests.get('http://localhost', headers=headers)
 
 create-simple-topology.recv_topo = result_recv.text
 
 create-simple-topology.sent_topo = json.dumps(topology, default=lambda o: o.__dict__, sort_keys=True)