Commit dcaa0b59 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Delete row from port_counters when deleting an interface.

parent 2f6a5619
...@@ -573,6 +573,10 @@ sub Delete($;$) ...@@ -573,6 +573,10 @@ sub Delete($;$)
if (!DBQueryWarn("delete from interface_state ". if (!DBQueryWarn("delete from interface_state ".
"where node_id='$node_id' and card='$card' and ". "where node_id='$node_id' and card='$card' and ".
" port='$port'")); " port='$port'"));
return -1
if (!DBQueryWarn("delete from port_counters ".
"where node_id='$node_id' and card='$card' and ".
" port='$port'"));
return -1 return -1
if (!DBQueryWarn("delete from interfaces ". if (!DBQueryWarn("delete from interfaces ".
"where logical=$logical and ". "where logical=$logical and ".
......
Supports Markdown
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