@classmethod
    def generateBirdConf(cls, node, services):
        cfg  = """\
/* Main configuration file for BIRD. This is ony a template,
 * you will *need* to customize it according to your needs
 * Beware that only double quotes \'"\' are valid. No singles. */
 

log "/var/log/%s.log" all;
#debug protocols all;
#debug commands 2;

router id  %s;       # Mandatory for IPv6, may be automatic for IPv4

protocol kernel {
    persist;                # Don\'t remove routes on BIRD shutdown
    scan time 200;          # Scan kernel routing table every 200 seconds
    export all;
    import all;
}

protocol device {
    scan time 10;           # Scan interfaces every 10 seconds
}

""" % (cls._name, cls.routerid(node))

        # Generate protocol specific configurations
        for s in services:
            if cls._name not in s._depends:
                continue
            cfg += s.generatebirdconfig(node)

        return cfg
Returns configuration file text. Other services that depend on bird
dataset/ETHPy150Open coreemu/core/daemon/core/services/bird.py/Bird.generateBirdConf