summaryrefslogtreecommitdiff
path: root/src/bgpstore.lisp
blob: 2c3b8ed802fa73805ea0b29890462fa3a810fec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-

(defparameter *db-spec* '("bgpstore" "bgpstore" "bgpstore" "localhost" ))

(defun start-bgpstore (host port)
  (with-connection *db-spec* 
    (let ((reader (new-reader host port)))
      (do ((e (next-xml-blurb reader "BGP_MESSAGE")
	      (next-xml-blurb reader "BGP_MESSAGE")))
	  ((null e))
	(dolist (obj (new-entries (xml-top-elem-from-octets e)))
	  (insert-dao obj)))
      (close-reader))))

(defun stop-bgpstore ())