mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
10 lines
357 B
Python
10 lines
357 B
Python
from BIRD import Config
|
|
from BIRD.Config import DeviceProtocolConfig
|
|
|
|
cf = Config()
|
|
cf.add(dev := DeviceProtocolConfig(name="foo", comment="my own device protocol"))
|
|
dev.set("scan_time", 86400, comment="once a day, my interfaces never change")
|
|
#cf.add(DeviceProtocolConfig(name="foo", scan_time=42, comment="my own device protocol"))
|
|
cf.write("test.conf")
|
|
|