ADDITIONAL METHODS
upsert_subnet( $net, $now, $vrf, $router )
Records $net as seen at $now, adding the row if it is new. One statement, so two pollers that see the same new subnet at once cannot both try to insert it.
$now must be one of the timestamp forms accepted by upsert, such as LOCALTIMESTAMP or to_timestamp(1)::timestamp.
Optional $vrf names the routing context the subnet was seen in, and defaults to the empty string (the global table).
Optional $router is the device that reported the subnet, kept as router_last. Without one the column is left as it was.