we also really want to get notifications upon flow removal

This commit is contained in:
Johanna Amann 2015-05-22 19:19:11 -07:00
parent 870acea8a9
commit 30e305cf4b
2 changed files with 7 additions and 6 deletions

View file

@ -213,7 +213,8 @@ function openflow_rule_to_flow_mod(p: PluginState, r: Rule) : OpenFlow::ofp_flow
$cookie=OpenFlow::generate_cookie(r$id*2), # leave one space for the cases in which we need two rules.
$command=OpenFlow::OFPFC_ADD,
$idle_timeout=c$idle_timeout,
$priority=int_to_count(r$priority + c$priority_offset)
$priority=int_to_count(r$priority + c$priority_offset),
$flags=OpenFlow::OFPFF_SEND_FLOW_REM # please notify us when flows are removed
);
if ( r?$expire )