daemon: added option API TLVs so that per-interface parameters are kept for EMANE models when a single node has multiple interfaces of the same EMANE model type but different model parameters

This commit is contained in:
Rod A Santiago 2016-04-20 08:43:39 -07:00
parent 46cd65c821
commit 68532cb818
2 changed files with 8 additions and 11 deletions

View file

@ -11,6 +11,8 @@ vnet.py: PyCoreNet and LxBrNet classes that implement virtual networks using
Linux Ethernet bridging and ebtables rules.
'''
import traceback
import os, sys, threading, time, subprocess
from core.api import coreapi
@ -345,6 +347,10 @@ class LxBrNet(PyCoreNet):
''' Configure link parameters by applying tc queuing disciplines on the
interface.
'''
sys.stderr.write("enter linkconfig() ...\n")
traceback.print_stack()
if devname is None:
devname = netif.localname
tc = [TC_BIN, "qdisc", "replace", "dev", devname]