ipif: set interface names
[hippotat] / hippotat
index 18cd14e..379a184 100755 (executable)
--- a/hippotat
+++ b/hippotat
@@ -254,6 +254,12 @@ def process_cfg(_opts, putative_servers, putative_clients):
       c.max_queue_time  = srch(cfg.getint, 'max_queue_time')
       c.vroutes         = srch(cfg.get,    'vroutes')
 
+      def cfg_get_raw(*args, **kwargs):
+        return cfg.get(*args, raw=True, **kwargs)
+
+      try: c.ifname     = srch(cfg_get_raw, 'ifname_client')
+      except NoOptionError: pass
+
       try: c.url = srch(cfg.get,'url')
       except NoOptionError:
         cfg_process_saddrs(c, ss)