mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
add a few more flow_mod options and the option to check via a predicate
if a module wants to be responsible for a certain rule...
This commit is contained in:
parent
d876c044df
commit
e21238d454
5 changed files with 26 additions and 14 deletions
|
@ -60,6 +60,8 @@ type ryu_ofp_flow_mod: record {
|
|||
flags: count &optional;
|
||||
match: OpenFlow::ofp_match;
|
||||
actions: vector of ryu_flow_action;
|
||||
out_port: count &optional;
|
||||
out_group: count &optional;
|
||||
};
|
||||
|
||||
# Mapping between ofp flow mod commands and ryu urls
|
||||
|
@ -98,6 +100,11 @@ function ryu_flow_mod(state: OpenFlow::ControllerState, match: ofp_match, flow_m
|
|||
$actions=flow_actions
|
||||
);
|
||||
|
||||
if ( flow_mod?$out_port )
|
||||
mod$out_port = flow_mod$out_port;
|
||||
if ( flow_mod?$out_group )
|
||||
mod$out_group = flow_mod$out_group;
|
||||
|
||||
# Type of the command
|
||||
local command_type: string;
|
||||
|
||||
|
|
|
@ -70,7 +70,8 @@ export {
|
|||
## Priority level of flow entry.
|
||||
priority: count &default=0;
|
||||
## For OFPFC_DELETE* commands, require matching entried to include
|
||||
## this as an output port. OFPP_ANY means no restrictions.
|
||||
## this as an output port/group. OFPP_ANY/OFPG_ANY means no restrictions.
|
||||
out_port: count &optional;
|
||||
out_group: count &optional;
|
||||
## Bitmap of the OFPFF_* flags
|
||||
flags: count &default=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue