Open Kilda Java Documentation
create-flows-api Namespace Reference

Variables

string url = "http://localhost/api/v1/flow"
 
dictionary headers = {'Content-Type': 'application/json'}
 
dictionary j_data = {"src_switch":"00:00:00:00:00:00:01:01", "src_port":1, "src_vlan":0, "dst_switch":"00:00:00:00:00:00:03:02", "dst_port":1, "dst_vlan":0, "bandwidth": 2000}
 
 result = requests.post(url, json=j_data, headers=headers)
 

Variable Documentation

◆ headers

dictionary create-flows-api.headers = {'Content-Type': 'application/json'}

Definition at line 26 of file create-flows-api.py.

◆ j_data

dictionary create-flows-api.j_data = {"src_switch":"00:00:00:00:00:00:01:01", "src_port":1, "src_vlan":0, "dst_switch":"00:00:00:00:00:00:03:02", "dst_port":1, "dst_vlan":0, "bandwidth": 2000}

Definition at line 27 of file create-flows-api.py.

◆ result

create-flows-api.result = requests.post(url, json=j_data, headers=headers)

Definition at line 28 of file create-flows-api.py.

◆ url

string create-flows-api.url = "http://localhost/api/v1/flow"

Definition at line 25 of file create-flows-api.py.