daemon: moved FRR_STATE_DIR from constants.py to frr service files

This commit is contained in:
Blake Harnden 2020-06-22 21:36:39 -07:00
parent f39ab1dee6
commit 2145c07cb7
3 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,6 @@ from typing import Optional, Tuple
import netaddr
from core import constants
from core.emane.nodes import EmaneNet
from core.nodes.base import CoreNode
from core.nodes.interface import CoreInterface
@ -14,6 +13,8 @@ from core.nodes.network import PtpNet, WlanNode
from core.nodes.physical import Rj45Node
from core.services.coreservices import CoreService
FRR_STATE_DIR: str = "/var/run/frr"
class FRRZebra(CoreService):
name: str = "FRRzebra"
@ -236,7 +237,7 @@ bootfrr
cls.configs[0],
frr_sbin_search,
frr_bin_search,
constants.FRR_STATE_DIR,
FRR_STATE_DIR,
)
for iface in node.get_ifaces():
cfg += f"ip link set dev {iface.name} down\n"