Commit ab255817 authored by Gary Wong's avatar Gary Wong

Add relevant switch interfaces to the ops_interface table.

parent b45e2637
......@@ -360,7 +360,9 @@ while (1) {
"aggregate_id='$NICKNAME'," .
"urn='urn:publicid:IDN+$DOMAIN+node+$switchnode'," .
"selfRef='$URL/info/node/${DOMAIN}_node_$switchnode'" );
# Switches generally don't have interfaces in the database,
# but it doesn't hurt to try.
AddInterfaces( $switchnode, $node, $ts );
}
}
......@@ -454,6 +456,14 @@ while (1) {
next if( !defined( $enode ) || !defined( $inode ) );
emdbi::DBQueryWarnN( $db, "REPLACE INTO ops_interface SET " .
"\$schema='http://www.gpolab.bbn.com/monitoring/schema/20140828/interface#', " .
"id='${DOMAIN}_interface_${snode}'," .
"selfRef='$URL/info/interface/${DOMAIN}_interface_${snode}'," .
"urn='urn:publicid:IDN+$DOMAIN+interface+${snode}'," .
"ts='$ts'," .
"properties\$role='experimental'" );
AddLink( "${lanid}e", $ts );
AddLink( "${lanid}i", $ts );
......
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