mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-22 06:54:43 +01:00
Add copyright header
This commit is contained in:
parent
d81b45da6e
commit
4cdb730b59
5
README
5
README
|
@ -1,6 +1,6 @@
|
|||
|
||||
bird-lg depend on :
|
||||
- python-flask
|
||||
- python-flask >= 0.8
|
||||
- python-dnspython
|
||||
|
||||
|
||||
|
@ -15,3 +15,6 @@ On frontend:
|
|||
|
||||
|
||||
Each service can by embeded in any webserver by follow regular python-flask configuration
|
||||
|
||||
|
||||
Only tested with bird 1.2.5
|
||||
|
|
20
bird.py
20
bird.py
|
@ -1,3 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ts=4
|
||||
###
|
||||
#
|
||||
# Copyright (c) 2006 Mehdi Abaakouk
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 3 as
|
||||
# published by the Free Software Foundation
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
#
|
||||
###
|
||||
|
||||
import socket
|
||||
import sys
|
||||
|
|
20
lg-proxy.py
20
lg-proxy.py
|
@ -1,3 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ts=4
|
||||
###
|
||||
#
|
||||
# Copyright (c) 2006 Mehdi Abaakouk
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 3 as
|
||||
# published by the Free Software Foundation
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
#
|
||||
###
|
||||
|
||||
|
||||
import subprocess
|
||||
|
|
28
lg.py
28
lg.py
|
@ -1,4 +1,24 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ts=4
|
||||
###
|
||||
#
|
||||
# Copyright (c) 2006 Mehdi Abaakouk
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 3 as
|
||||
# published by the Free Software Foundation
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
#
|
||||
###
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
@ -15,14 +35,6 @@ from flask import Flask, render_template, jsonify, redirect, session, request, a
|
|||
app = Flask(__name__)
|
||||
app.config.from_pyfile('lg.cfg')
|
||||
|
||||
|
||||
#def same_origin_policy_hander(resp):
|
||||
# resp.headers["Access-Control-Allow-Origin"] = "*"
|
||||
# return resp
|
||||
#
|
||||
#app.after_request(same_origin_policy_hander)
|
||||
#
|
||||
|
||||
def add_links(text):
|
||||
if type(text) in [ str, unicode ]:
|
||||
text = text.split("\n")
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
html, body, ul, li { padding: 0 ; margin: 0; }
|
||||
html, body {
|
||||
height:100% ;
|
||||
position:relative;
|
||||
}
|
||||
a { text-decoration: none; color:blue; }
|
||||
|
||||
|
@ -105,6 +106,12 @@ input#ipopup{
|
|||
width: auto;
|
||||
}
|
||||
|
||||
#footer{
|
||||
position:fixed;
|
||||
bottom:0px;
|
||||
left:0px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.error{
|
||||
font-weight:normal;
|
||||
color:red;
|
||||
|
|
|
@ -165,3 +165,6 @@ $( function() {
|
|||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
bird looking glass <a href="https://github.com/sileht/bird-lg/">source code</a> under GPL 3.0
|
||||
</div>
|
||||
|
|
6
test.py
6
test.py
|
@ -1,6 +0,0 @@
|
|||
|
||||
from bird import BirdSocketSingleton
|
||||
|
||||
s = BirdSocketSingleton("h3", 9994)
|
||||
print s.cmd("show protocols")
|
||||
print s.cmd("show protocols all TETANEUTRAL")
|
20
toolbox.py
20
toolbox.py
|
@ -1,3 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ts=4
|
||||
###
|
||||
#
|
||||
# Copyright (c) 2006 Mehdi Abaakouk
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 3 as
|
||||
# published by the Free Software Foundation
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
#
|
||||
###
|
||||
|
||||
from dns import resolver,reversename
|
||||
import socket
|
||||
|
|
Loading…
Reference in a new issue