~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename cfg_process_common to cfg_process_general
[hippotat]
/
hippotatlib
/
__init__.py
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index
9b10fdf
..
a4e7b69
100644
(file)
--- a/
hippotatlib/__init__.py
+++ b/
hippotatlib/__init__.py
@@
-110,7
+110,8
@@
def logevent_is_boringtwisted(event):
if dflag is None and DBG.TWISTED in debug_set: return False
return True
except Exception:
if dflag is None and DBG.TWISTED in debug_set: return False
return True
except Exception:
- print(traceback.format_exc(), file=org_stderr)
+ print('EXCEPTION (IN BORINGTWISTED CHECK)',
+ traceback.format_exc(), file=org_stderr)
return False
@implementer(twisted.logger.ILogFilterPredicate)
return False
@implementer(twisted.logger.ILogFilterPredicate)
@@
-136,22
+137,22
@@
max_batch_up = 4000
http_retry = 5
port = 80
vroutes = ''
http_retry = 5
port = 80
vroutes = ''
+ifname_client = hippo%%d
+ifname_server = shippo%%d
#[server] or [<client>] overrides
#[server] or [<client>] overrides
-ipif = userv root ipif %(local)s,%(peer)s,%(mtu)s,slip %(rnets)s
+ipif = userv root ipif %(local)s,%(peer)s,%(mtu)s,slip
,%(ifname)s
%(rnets)s
# relating to virtual network
mtu = 1500
# relating to virtual network
mtu = 1500
-[SERVER]
-server = SERVER
# addrs = 127.0.0.1 ::1
# url
# relating to virtual network
vvnetwork = 172.24.230.192
# vnetwork = <prefix>/<len>
# addrs = 127.0.0.1 ::1
# url
# relating to virtual network
vvnetwork = 172.24.230.192
# vnetwork = <prefix>/<len>
-# vadd
r
= <ipaddr>
+# vadd
r
= <ipaddr>
# vrelay = <ipaddr>
# vrelay = <ipaddr>
@@
-432,7
+433,7
@@
def _cfg_process_putatives():
return (servers, clients)
return (servers, clients)
-def cfg_process_
common
(c, ss):
+def cfg_process_
general
(c, ss):
c.mtu = cfg.getint(ss, 'mtu')
def cfg_process_saddrs(c, ss):
c.mtu = cfg.getint(ss, 'mtu')
def cfg_process_saddrs(c, ss):
@@
-525,6
+526,10
@@
def cfg_process_ipif(c, sections, varmap):
#---------- startup ----------
#---------- startup ----------
+def log_debug_config(m):
+ if not DBG.CONFIG in debug_set: return
+ print('DBG.CONFIG:', m)
+
def common_startup(process_cfg):
# calls process_cfg(putative_clients, putative_servers)
def common_startup(process_cfg):
# calls process_cfg(putative_clients, putative_servers)
@@
-536,7
+541,7
@@
def common_startup(process_cfg):
def readconfig(pathname, mandatory=True):
def log(m, p=pathname):
if not DBG.CONFIG in debug_set: return
def readconfig(pathname, mandatory=True):
def log(m, p=pathname):
if not DBG.CONFIG in debug_set: return
-
print('DBG.CONFIG: %s: %s' % (m, pathname
))
+
log_debug_config('%s: %s' % (m, p
))
try:
files = os.listdir(pathname)
try:
files = os.listdir(pathname)