Commit 6d67b039 authored by Binh Nguyen's avatar Binh Nguyen

Merge branch 'master' of

parents a42239ca 11b554a2
# !/usr/bin/env python
import sys, json, requests
import subprocess
sys.path.insert(0, '/users/binh/sripv6-linux/ospf_monitor/lib')
from ospfv3 import *
......@@ -18,7 +19,7 @@ class LSAR(object):
def send_ospf_msg(self, ospf_msg):
uri = 'http://%s:%s/ospf_monitor/lsa_put' % (self.dst_ip, self.dst_port)
r =, data=json.dumps(ospf_msg, ensure_ascii=False))
r =, data=ospf_msg)
if (r.status_code != 200):
print "Sent OSPF message to %s,return code = %s" % (uri, r.status_code)
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