daemon: added support for link options buffer read/write to xml

This commit is contained in:
Blake Harnden 2020-12-07 22:31:53 -08:00
parent 6793382f44
commit 5b93c2d7ac
3 changed files with 14 additions and 0 deletions

View file

@ -241,12 +241,16 @@ class CoreInterface:
jitter = self.getparam("jitter")
if jitter is not None:
jitter = int(jitter)
buffer = self.getparam("buffer")
if buffer is not None:
buffer = int(buffer)
return LinkOptions(
delay=delay,
bandwidth=bandwidth,
dup=dup,
jitter=jitter,
loss=self.getparam("loss"),
buffer=buffer,
unidirectional=unidirectional,
)