Open Kilda Java Documentation
create-simple-topology Namespace Reference

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)
 

Variable Documentation

◆ bootstrapServer

string create-simple-topology.bootstrapServer = 'kafka.pendev:9092'

Definition at line 24 of file create-simple-topology.py.

◆ headers

dictionary create-simple-topology.headers = {'Content-Type': 'application/json'}

Definition at line 74 of file create-simple-topology.py.

◆ linked_id_next

int create-simple-topology.linked_id_next = switch_id + 1

Definition at line 40 of file create-simple-topology.py.

◆ linked_id_prev

int create-simple-topology.linked_id_prev = switch_id - 1

Definition at line 41 of file create-simple-topology.py.

◆ loopSize

int create-simple-topology.loopSize = 3

Definition at line 29 of file create-simple-topology.py.

◆ MT_INFO

string create-simple-topology.MT_INFO = "org.openkilda.messaging.info.InfoMessage"

Definition at line 20 of file create-simple-topology.py.

◆ MT_ISL

string create-simple-topology.MT_ISL = "org.openkilda.messaging.info.event.IslInfoData"

Definition at line 22 of file create-simple-topology.py.

◆ MT_SWITCH

string create-simple-topology.MT_SWITCH = "org.openkilda.messaging.info.event.SwitchInfoData"

Definition at line 21 of file create-simple-topology.py.

◆ node

dictionary create-simple-topology.node = {}

Definition at line 35 of file create-simple-topology.py.

◆ outgoing_relationships

list create-simple-topology.outgoing_relationships = []

Definition at line 55 of file create-simple-topology.py.

◆ producer

create-simple-topology.producer = KafkaProducer(bootstrap_servers=bootstrapServer)

Definition at line 27 of file create-simple-topology.py.

◆ recv_topo

create-simple-topology.recv_topo = result_recv.text

Definition at line 78 of file create-simple-topology.py.

◆ result_recv

create-simple-topology.result_recv = requests.get('http://localhost', headers=headers)

Definition at line 76 of file create-simple-topology.py.

◆ sent_topo

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.

◆ switch_id

create-simple-topology.switch_id = n

Definition at line 39 of file create-simple-topology.py.

◆ topic

string create-simple-topology.topic = 'kilda-test'

Definition at line 25 of file create-simple-topology.py.

◆ topology

list create-simple-topology.topology = []

Definition at line 32 of file create-simple-topology.py.