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

Clear the DB switch path, and let snmpit compute a new one

as ports come and go.
parent b55e0f3a
......@@ -172,6 +172,15 @@ DBQueryFatal("insert into shared_vlans set open='$open', ".
" pid='$pid', eid='$eid', exptidx='$idx', ".
" token='$token', lanid='$lanid', vname='$lanname', ".
" created=now(), creator='$uid', creator_idx='$uid_idx'");
# Since that worked, clear the switch path. Whatever the mapper
# computed will be wrong as soon as we start adding ports. By
# clearing the path, we are telling snmpit to compute a new path
# as ports are added or removed from the vlan.
sub fatal($)
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