-
Notifications
You must be signed in to change notification settings - Fork 12
Profile Module
Subscribers of the Flowsim service are able to create custom openflow switch profiles that can be loaded into the data plane simulation.
Request: POST - /api/profile/:name
{ name: "pica8 profile",
ofp_version: 0,
datapath_id: 100,
n_buffers: 20,
n_tables: 1,
n_ports: 2,
ip_reassembly: true,
port_blocked: true,
mfr_description: "pica8 switch",
hw_descriptoin: "switch",
sw_description: "v1.0",
serial_num: "abc123",
dp_description: "description of dp",
miss_send_len: 64,
frag_handling: 'NORMAL',
vp_all: true,
vp_controller: true,
vp_table: true,
vp_in_port: true,
vp_any: true,
vp_local: true,
vp_normal: true,
vp_flood: true,
flow_stats: true,
table_stats: true,
port_stats: true,
group_stats: true,
queue_stats: true,
flow_tables: [ {id: 1} ]
}
Response
{ value: {} }
Request: GET - /api/profile/
Response
{ value: {
profiles: [ {
"id": "1",
"name": "pica8"
}, {
"id": "5",
"name": "flowgram"
}]
}
}
Request: GET - /api/profile/:name
Response:
{ value: {
id: profile_id,
name: profile_name
} }
Request: PUT - /api/profile/:name
{
id: 3,
name: a_name
}
Response
{ value: {} }
Request: DEL - /api/profile/:name
Response:
{ value: {} }
[Home] (https://github.com/flowgrammable/flowsim/wiki)
[Subscriber Module] (https://github.com/flowgrammable/flowsim/wiki/Subscriber-Module)
[Packet Module] (https://github.com/flowgrammable/flowsim/wiki/packet-module)
[Profile Module] (https://github.com/flowgrammable/flowsim/wiki/profile-module)
[Switch Module] (https://github.com/flowgrammable/flowsim/wiki/Switch-Module)
[Database Module] (https://github.com/flowgrammable/flowsim/wiki/Database-Result-and-Error)
[Server Module] (https://github.com/flowgrammable/flowsim/wiki/Server-Module)
[Function Results] (https://github.com/flowgrammable/flowsim/wiki/Function-Results)
[Development Guidelines] (https://github.com/flowgrammable/flowsim/wiki/General-Guidelines)