This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dnl Allow traffic from local stack to ns0. Only allow neighbour discovery, | |
| dnl return traffic from ns0 back to the local stack. | |
| AT_DATA([flows.txt], [dnl | |
| dnl default | |
| table=0,priority=1,action=drop | |
| table=0,priority=10,arp,action=normal | |
| dnl Load the output port to REG0 | |
| table=0,priority=100,ip,in_port=LOCAL,action=load:1->NXM_NX_REG0[[0..15]],goto_table:1 | |
| table=0,priority=100,ip,in_port=1,action=load:65534->NXM_NX_REG0[[0..15]],goto_table:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CHECK_CONNTRACK() | |
| # | |
| # Perform requirements checks for running conntrack tests, and flush the | |
| # kernel conntrack tables when the test is finished. | |
| # | |
| m4_define([CHECK_CONNTRACK], | |
| [AT_SKIP_IF([test $HAVE_CONNTRACK = no]) | |
| AT_SKIP_IF([test $HAVE_PYTHON = no]) | |
| m4_foreach([mod], [[nf_conntrack_ipv4], [nf_conntrack_ipv6]], | |
| [modprobe mod || echo "Module mod not loaded." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AT_DATA([flows.txt], [dnl | |
| priority=1,action=drop | |
| priority=10,arp,action=normal | |
| in_port=1,udp,action=ct(commit,zone=0),set_field:1->conn_mark,2 | |
| in_port=2,udp,conn_state=-trk,action=ct(recirc,zone=0) | |
| in_port=2,icmp,conn_state=-trk,action=ct(recirc,zone=0) | |
| in_port=2,udp,conn_state=+trk+est-new,action=1 | |
| in_port=2,icmp,conn_state=+trk+rel,conn_mark=1,action=1 | |
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---- bond0 ---- | |
| bond_mode: balance-tcp | |
| bond may use recirculation: yes, Recirc-ID : 300 | |
| bond-hash-basis: 0 | |
| updelay: 0 ms | |
| downdelay: 0 ms | |
| lacp_status: negotiated | |
| slave p1: enabled | |
| may_enable: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| make | |
| CONCURRENCY_LEVEL=${CONCURRENCY_LEVEL:-2} | |
| OVSDIR=/home/switch/git/openvswitch | |
| ./tests/testsuite -C tests \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| OVSDIR=/tmp/ovstest | |
| MODDIR=$OVSDIR/lib/modules/`uname -r`/extra | |
| OVSTAR=$OVSDIR.tar | |
| OVSSCRIPT=ovstest.sh | |
| USER=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| RFVM1IP=192.169.1.100 | |
| HOSTVMIP=192.169.1.1 | |
| DPPORTNET=172.31 | |
| DPPORTS=2 | |
| SWITCH1DPID=99 | |
| STARTBVMS=0 | |
| RYU_PATH=/home/vandervecken/ryu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import pymongo | |
| import rflib.defs as defs | |
| import rflib.ipc.MongoIPC as MongoIPC | |
| from rflib.ipc.RFProtocolFactory import RFProtocolFactory | |
| def usage(): | |
| print('Usage: %s <channel>' % sys.argv[0]) | |
| print(' channel: "rfclient" or "rfproxy"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pymongo import MongoClient | |
| c = pymongo.Connection('127.0.0.1', 27017) | |
| c.db.collection_names() | |
| chan1 = c.db['rfclient<->rfserver'] | |
| chan2 = c.db['rfserver<->rfproxy'] | |
| for entry in chan1.find(): | |
| print(entry) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ctags rflib/*.h | |
| ctags -u rflib/*/*.{cc,h} | |
| ctags -u rfclient/*.{cc,h,hh} | |
| ctags -u rfserver/*.py | |
| ctags -u nox/src/nox/netapps/rfproxy/*.{cc,hh} |