<commit_before>#!/usr/bin/lua

local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local utils = require("lime.utils")
local wireless = require("lime.wireless")


proto = {}

proto.configured = false

function proto.configure(args)
	if proto.configured then return end
	proto.configured = true

	local ipv4, ipv6 = network.primary_address()
	local bgpPeers = {{remoteIP="10.1.152.10", remoteAS=37922, localAS=97922}}

	local base_template = [[
router id $1;

protocol kernel {<commit_msg>lime-proto-bgp: add protocol device to bird configuration so it listen for connections<commit_after>#!/usr/bin/lua

local network = require("lime.network")
local config = require("lime.config")
local fs = require("nixio.fs")
local utils = require("lime.utils")
local wireless = require("lime.wireless")


proto = {}

proto.configured = false

function proto.configure(args)
	if proto.configured then return end
	proto.configured = true

	local ipv4, ipv6 = network.primary_address()
	local bgpPeers = {{remoteIP="10.1.152.10", remoteAS=37922, localAS=97922}}

	local base_template = [[
router id $1;

protocol device {
        scan time 10;
}

protocol kernel {
{'fraction_non_alphanumeric': 0.12935323383084577, 'fraction_numerical': 0.03648424543946932, 'mean_word_length': 4.975247524752476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5813231', 'n_tokens_mistral': 424, 'n_tokens_neox': 395, 'n_words': 104}