Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
ab2d8a77
Commit
ab2d8a77
authored
7 years ago
by
Tomáš Čejka
Browse files
Options
Downloads
Patches
Plain Diff
removed settings_local
parent
9ff6a809
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flowspy/settings.py.dist
+5
-2
5 additions, 2 deletions
flowspy/settings.py.dist
flowspy/settings_local.py.dist
+0
-160
0 additions, 160 deletions
flowspy/settings_local.py.dist
with
5 additions
and
162 deletions
flowspy/settings.py.dist
+
5
−
2
View file @
ab2d8a77
...
...
@@ -413,8 +413,11 @@ STATISTICS_PER_RULE__ADD_INITIAL_ZERO = True
##############################################################################
MYSETTING1="default"
#from settings_local import *
from flowspy.settings_local import *
try:
from flowspy.settings_local import *
except Exception as e:
print("Could not load local settings :" + str(e))
print "MYSETTING1="+MYSETTING1
print "debug settings.NOTIFY_ADMIN_MAILS="+str(NOTIFY_ADMIN_MAILS)
...
...
This diff is collapsed.
Click to expand it.
flowspy/settings_local.py.dist
deleted
100644 → 0
+
0
−
160
View file @
9ff6a809
# -*- coding: utf-8 -*-
##############################################################################
##############################################################################
import sys
print "loaded settings_local.py"
import socket
try:
FODHOSTNAME = socket.gethostname()
except:
FODHOSTNAME = 'localhost'
MYSETTING1 = "testsettings1"
#sys.exit
##############################################################################
##############################################################################
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('AdminName', 'evangelos.spatharas@geant.org'),
)
MANAGERS = ADMINS
ALLOWED_HOSTS = ['*']
SITE_ID = 1
SECRET_KEY = 'XXXXXX'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'fod', # Or path to database file if using sqlite3.
'USER': 'fod', # Not used with sqlite3.
'PASSWORD': 'XXXXXXX', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'Europe/Athens'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
_ = lambda s: s
LANGUAGES = (
('el', _('Greek')),
('en', _('English')),
)
STATIC_ROOT = '/srv/flowspy/static'
ROOT_URLCONF = 'flowspy.urls'
WSGI_APPLICATION = 'flowspy.wsgi.application'
# Netconf Device credentials
# The following variables should contain the address of the device with
# flowspec, the username and password of the appliers account and the netconf
# port.
NETCONF_DEVICE = "172.16.113.10"
NETCONF_USER = "fod"
NETCONF_PASS = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
NETCONF_PORT = 22
# Notifications
SERVER_EMAIL = "Geant FoD Service (TEST) <test@fod.geant.net>"
EMAIL_SUBJECT_PREFIX = "[FoD] "
EXPIRATION_NOTIFY_DAYS = 4
PREFIX_LENGTH = 29
POLL_SESSION_UPDATE = 60.0
#Shibboleth attribute map
SHIB_AUTH_ENTITLEMENT = ''
SHIB_ADMIN_DOMAIN = 'grnet.gr'
SHIB_LOGOUT_URL = 'https://' + FODHOSTNAME + '/Shibboleth.sso/Logout'
# BCC mail addresses
NOTIFY_ADMIN_MAILS = ["evangelos.spatharas@geant.org"]
# Then actions in the ui (dropdown)
UI_USER_THEN_ACTIONS = ['discard', 'rate-limit']
UI_USER_PROTOCOLS = ['icmp', 'tcp', 'udp']
ACCOUNT_ACTIVATION_DAYS = 7
# Define subnets that should not have any rules applied whatsoever
#PROTECTED_SUBNETS = ['10.10.0.0/16']
PROTECTED_SUBNETS = []
# max number of days into the future that is allowed to pick in rule expiration datepicker
MAX_RULE_EXPIRE_DAYS = 30
# Add two whois servers in order to be able to get all the subnets for an AS.
PRIMARY_WHOIS = 'whois.ripe.net'
ALTERNATE_WHOIS = 'whois.ripe.net'
# results in exceptions:
#ALTERNATE_WHOIS = 'whois.example.net'
LOG_FILE_LOCATION = "/var/log/fod"
BRANDING = {
'name': 'GÉANT OC',
'url': 'https://' + FODHOSTNAME,
'footer_iframe': 'https://' + FODHOSTNAME + '/iframe',
'facebook': '//facebook.com/',
'twitter': '//twitter.com/',
'phone': '+44 1223 733033',
'email': 'ncc@noc.geant.net',
'logo': 'fodlogo2.png',
'favicon': 'favicon.ico',
}
# Limit of ports in 'ports' / 'SrcPorts' / 'DstPorts' of a rule:
#PORTRANGE_LIMIT = 100
PORTRANGE_LIMIT = 65535
SNMP_COMMUNITY = "XXXXXXXXXXXXXX"
SNMP_IP = ["172.16.113.10",
#"172.16.113.12",
"172.16.113.14",
"172.16.113.16"]
# currently unused
SNMP_CNTBYTES = "1.3.6.1.4.1.2636.3.5.2.1.5"
SNMP_CNTPACKETS = "1.3.6.1.4.1.2636.3.5.2.1.4"
# get only statistics of specified tables
SNMP_RULESFILTER = ["__flowspec_default_inet__", "__flowspec_IAS_inet__"]
# load new data into cache if it is older that a specified number of seconds
SNMP_POLL_INTERVAL = 8 #seconds
# cache file for data
SNMP_TEMP_FILE = "/tmp/snmp_temp_data"
# Number of historical values to store for a route.
# Polling interval must be set for "snmp-stats-poll" celery task in CELERYBEAT_SCHEDULE.
# By default, it is 5 min interval, so SNMP_MAX_SAMPLECOUNT=12 means we have about
# one hour history.
SNMP_MAX_SAMPLECOUNT = 12
# Age of inactive routes that can be already removed (in seconds)
SNMP_REMOVE_RULES_AFTER = 3600
DISABLE_RULE_OVERLAP_CHECK = True
##############################################################################
##############################################################################
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment