0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/python/conftest.py
2023-05-23 13:44:48 +02:00

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")