Skip to content

Instantly share code, notes, and snippets.

View dpino's full-sized avatar
🏠
Working from home

Diego Pino dpino

🏠
Working from home
View GitHub Profile
@dpino
dpino / source_nic_sink.lua
Last active July 7, 2016 08:14
source_nic_sink
-- Source -> NIC -> Sink
-- Execute in "chur":
-- sudo ./snabb snsh source_nic_sink.lua
--
-- link report:
-- 2 sent on nic1.tx -> sink.in1 (loss rate: 0%)
-- 12,600,876 sent on source.out -> nic1.rx (loss rate: 0%)
local basic_apps = require("apps.basic.basic_apps")
@dpino
dpino / ns-ipv6.sh
Created April 29, 2016 22:16
Create Network Namespace with IPv6 connectivity via Hurricane Electric tunnel
#!/usr/bin/env bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "You must run this script as root."
exit 1
fi
VETH1_IPV6=fd00::1
@dpino
dpino / sof-36834786.lua
Created April 25, 2016 14:50
Print_r in Lua
-- Possible solution to http://stackoverflow.com/questions/36834786/how-to-save-a-table-to-a-file-from-lua/36836187#36836187
function print_r (t, fd)
fd = fd or io.stdout
local function print(str)
str = str or ""
fd:write(str.."\n")
end
local print_r_cache={}
local function sub_print_r(t,indent)
#!/usr/bin/env bash
# set -x
# Snabb Switch CI for GitHub Pull Requests. Depends on `jq'
# (http://stedolan.github.io/jq/).
export SNABBBOTDIR=${SNABBBOTDIR:-"/tmp/snabb_bot"}
export REPO=${REPO:-"igalia/snabbswitch"}
export CURRENT=${CURRENT:-"lwaftr"}
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #95
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: dd69563c76159fb02fded679c36bc36a20083996
ERROR: Failed to build 95
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/95/head -> pr95
Switched to branch 'pr95'
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #176
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: 2fc51b6dc6620c0ebae168b2e4eceb6c9d475999
ERROR: Failed to build 176
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/176/head -> pr176
Switched to branch 'pr176'
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #227
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: f0044002f8967b9bc778f16e94d569b05b42f02b
ERROR: Failed to build 227
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/227/head -> pr227
Switched to branch 'pr227'
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #236
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: 9f4b1b50473f018d5525dea86a99d959b276ad3c
ERROR: Failed to build 236
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/236/head -> pr236
Switched to branch 'pr236'
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #244
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: ddde62e821603cee40047aec637b96b6eb486771
ERROR: Failed to build 244
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/244/head -> pr244
Switched to branch 'pr244'
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #246
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: 1add3a6870ae02cfddfb9ec640ad4b72d4a5aa7d
ERROR: Failed to build 246
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/246/head -> pr246
Switched to branch 'pr246'