Ejemplo n.º 1
0
def test_edge1_switch (event):
	
	msg = cfg.add_time_slot(g.tslot_edge1)
	event.connection.send(msg)

	msg = tab_cfg.add_flow_table('pipe_edge1')
	event.connection.send(msg)
	msg = tab_cfg.add_flow_entry('pipe_edge1', 0)
	event.connection.send(msg)
	msg = tab_cfg.add_flow_entry('pipe_edge1', 1)
	event.connection.send(msg)
	msg = tab_cfg.add_flow_entry('pipe_edge1', 2)
	event.connection.send(msg)
	msg = tab_cfg.add_flow_entry('pipe_edge1', 3)
	event.connection.send(msg)




	msg = cfg.add_classfier_table('classfier_edge1')
	event.connection.send(msg)


	msg = cfg.add_classfier_entry('classfier_edge1', 0)
	event.connection.send(msg)

	msg = cfg.add_classfier_entry('classfier_edge1', 1)
	event.connection.send(msg)
Ejemplo n.º 2
0
def test_edge3_switch (event):

	msg = cfg.add_time_slot(g.tslot_edge3)
	event.connection.send(msg)

	msg = cfg.add_classfier_table('classfier_edge3')
	event.connection.send(msg)

	msg = cfg.add_classfier_entry('classfier_edge3', 0)
	event.connection.send(msg)
Ejemplo n.º 3
0
def test_new_st_edge_out_switch(event):

    msg = cfg.add_time_slot(g.tslot_new_st_edge_out)
    event.connection.send(msg)

    msg = cfg.add_classfier_table('new_st_edge')
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('new_st_edge', 3)
    event.connection.send(msg)
Ejemplo n.º 4
0
def test_core1_switch(event):

    msg = cfg.add_time_slot(g.tslot_core1)
    event.connection.send(msg)

    msg = cfg.add_classfier_table('classfier_core1')
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_core1', 0)
    event.connection.send(msg)
Ejemplo n.º 5
0
def test_edge_switch(event):

    msg = cfg.add_time_slot(g.tslot_edge6)
    event.connection.send(msg)

    msg = cfg.add_classfier_table('sync_reply1')
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('sync_reply1', 0)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('sync_reply1', 1)
    event.connection.send(msg)
Ejemplo n.º 6
0
def test_new_st_core2_switch(event):

    msg = cfg.add_time_slot(g.tslot_new_st_core2)
    event.connection.send(msg)

    msg = cfg.add_classfier_table('new_st_core')
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('new_st_core', 0)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('new_st_core', 1)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('new_st_core', 2)
    event.connection.send(msg)
Ejemplo n.º 7
0
def test_send_switch(event):
    '''
	msg = cfg.add_time_slot(g.tslot_new_st_send)
	event.connection.send(msg)


	msg = cfg.add_classfier_table('sync_send1')
	event.connection.send(msg)

	msg = cfg.add_classfier_entry('sync_send1', 0)
	event.connection.send(msg)

	msg = cfg.add_classfier_entry('sync_send1', 1)
	event.connection.send(msg)

	msg = cfg.add_classfier_entry('sync_send1', 2)
	event.connection.send(msg)
	'''
    msg = cfg.add_time_slot(g.tslot_edge9)
    event.connection.send(msg)

    msg = tab_cfg.add_flow_table('pipe_edge9')
    event.connection.send(msg)
    msg = tab_cfg.add_flow_entry('pipe_edge9', 0)
    event.connection.send(msg)
    msg = tab_cfg.add_flow_entry('pipe_edge9', 1)
    event.connection.send(msg)

    msg = cfg.add_classfier_table('classfier_edge9')
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_edge9', 0)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_edge9', 1)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_edge9', 2)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_edge9', 3)
    event.connection.send(msg)

    msg = cfg.add_classfier_entry('classfier_edge9', 4)
    event.connection.send(msg)
Ejemplo n.º 8
0
def test_time_slot_config(event): 
	msg = cfg.add_time_slot()
	event.connection.send(msg)
Ejemplo n.º 9
0
def test_TSLOT_CFG(event): 
	msg = cfg.add_time_slot()

	event.connection.send(msg)