Skip to content

Commit

Permalink
Merge pull request #1 from internet2/frt
Browse files Browse the repository at this point in the history
Add .gitignore
  • Loading branch information
knewell authored Mar 15, 2019
2 parents 223bca4 + 6b5bfc1 commit b136dfb
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 7 deletions.
115 changes: 112 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,112 @@
*retry
attic
.idea
id_rsa
id_rsa.pub
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
[Ss]hare
pyvenv.cfg
.venv
pip-selfcheck.json

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
*.retry
*.swp

.retry
group_vars/vmware
*.ova
*.iso
*.vmdk
*.mf
*.ovf
3 changes: 2 additions & 1 deletion data/frt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ FlowRoutesTable:
rpc: get-route-information
args:
extensive: True
active-path: True
table: 'inetflow.0'
args_key: table
item: route-table/rt
Expand All @@ -24,4 +25,4 @@ FlowRoutesView:
age: rt-entry/age
action: rt-entry/communities/community
action_141: rt-entry/communities/extended-community
tsi: tsi
tsi: tsi
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def loadFlowRouteConfig(self):

# Junos 14.1RX does not support json so let's go with XML here

if int(version[0]) <= 14 and int(version[1]) <= 1:
# if int(version[0]) <= 14 and int(version[1]) <= 1:
if True:

data = dev.rpc.get_config(options={'format': 'xml'}, filter_xml='routing-options/flow')

Expand Down Expand Up @@ -517,8 +518,8 @@ def POST(self):
webapp.api.frt = Frt(my_dev=my_dev)
webapp.api.frct = Frtc(my_dev=my_dev)
webapp.api.frft = Frft(my_dev=my_dev)
cherrypy.config.update({'log.screen': False,
cherrypy.config.update({'log.screen': True,
'server.socket_host': '0.0.0.0',
'server.socket_port': 8080,
'server.socket_port': 8088,
})
cherrypy.quickstart(webapp, '/', conf)

0 comments on commit b136dfb

Please sign in to comment.