Commit dcaa0b59 authored by Leigh Stoller's avatar Leigh Stoller

Delete row from port_counters when deleting an interface.

parent 2f6a5619
......@@ -573,6 +573,10 @@ sub Delete($;$)
if (!DBQueryWarn("delete from interface_state ".
"where node_id='$node_id' and card='$card' and ".
" port='$port'"));
return -1
if (!DBQueryWarn("delete from port_counters ".
"where node_id='$node_id' and card='$card' and ".
" port='$port'"));
return -1
if (!DBQueryWarn("delete from interfaces ".
"where logical=$logical and ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment