Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
33ea77a
cloud test setup documentation (#495)
grafnu Jun 24, 2020
048bf20
1.6.0 release
henry54809 Jun 25, 2020
b244709
fix image pull in cmd/build (#503)
henry54809 Jun 25, 2020
588189c
1.6.1 release
henry54809 Jun 25, 2020
ab7eed7
USI (#496)
henry54809 Jun 26, 2020
f211531
Update Minimum Send Test (#498)
noursaidi Jun 29, 2020
4e33982
Minor UDMI updates for pubber keygen
grafnu Jun 30, 2020
970c9d6
add check for git version tag in Travis (#519)
pbatta Jun 30, 2020
83f8375
Add DAQ version to origin summary (#522)
grafnu Jul 7, 2020
06e4660
1.7.0 release
pbatta Jul 7, 2020
499bff9
Feature/usi OVS switch (#521)
henry54809 Jul 7, 2020
79768e4
NTPv4 support (#487)
frgitdaq Jul 8, 2020
fde4289
UDMI registrar error handling updates (#508)
grafnu Jul 9, 2020
7478825
Use trunk rather than stack between switches (#526)
grafnu Jul 9, 2020
a0bc2b7
using usi in daq (#520)
henry54809 Jul 10, 2020
9a95b36
Update troubleshooting doc (#528)
pbatta Jul 10, 2020
02f1fee
Add troubleshooting script (#529)
pbatta Jul 13, 2020
ca5a7f6
Remove deprecated topology files (#530)
grafnu Jul 13, 2020
2361f80
Support for alternate sec switch (not managed by DAQ) (#531)
grafnu Jul 13, 2020
fe0bf8b
Additional DHCP test part 1 (#532)
henry54809 Jul 14, 2020
9f6add8
Refactor ipaddress module (#536)
grafnu Jul 15, 2020
ff20a21
Remove old python2 components (#537)
grafnu Jul 16, 2020
02e4cc8
Additional DHCP test part 2. Multisubnet test (#539)
henry54809 Jul 16, 2020
adb4c25
Use multiple NTP requests and the monitor pcap capture, to reduce fla…
pbatta Jul 17, 2020
b2bfed7
Disable GCP combine check (#542)
grafnu Jul 18, 2020
9848021
Additional DHCP test part 3. Ip change test (#543)
henry54809 Jul 18, 2020
1eaaffd
USI cisco9300 fix (#545)
henry54809 Jul 20, 2020
e77a6e8
Refactor UDMI to external repo (#544)
grafnu Jul 20, 2020
1a2f90d
Purge UDMI files
grafnu Jul 20, 2020
bf366e0
USI parsing logic fix (#547)
henry54809 Jul 21, 2020
84c8b6f
Build check for updated deps (#549)
grafnu Jul 21, 2020
45942a4
Bump lodash from 4.17.15 to 4.17.19 in /firebase/functions (#538)
dependabot[bot] Jul 21, 2020
5bc04f3
add security.ssh.version test (#523)
noursaidi Jul 21, 2020
ec5151f
Move ntp test to monitor pcap to reduce flakiness (#546)
pbatta Jul 21, 2020
f63be9d
Update dependency gradle to v6.5.1 (#518)
renovate[bot] Jul 21, 2020
2bde09e
Update dependency @google-cloud/pubsub to v2.2.0 (#527)
renovate[bot] Jul 21, 2020
cc71574
Update dependency com.github.jengelman.gradle.plugins:shadow to v6 (#…
renovate[bot] Jul 21, 2020
07b70d1
USI not to use background shell (#548)
grafnu Jul 21, 2020
f3ce97e
Pin to UDMI version 1.0.0
grafnu Jul 21, 2020
00c7701
1.8.0 release
grafnu Jul 21, 2020
d5fb5ac
Restore gcp combine report test (#553)
henry54809 Jul 21, 2020
b0e83b3
Update dependency @google-cloud/pubsub to v2.3.0 (#554)
renovate[bot] Jul 21, 2020
537688b
Update dependency firebase-admin to v9 (#535)
renovate[bot] Jul 21, 2020
338cada
Update dependency com.github.johnrengelman.shadow:com.github.johnreng…
renovate[bot] Jul 21, 2020
845b12c
Update dependency io.grpc:grpc-netty-shaded to v1.30.2 (#512)
renovate[bot] Jul 21, 2020
c216cd2
Update dependency com.fasterxml.jackson.dataformat:jackson-dataformat…
renovate[bot] Jul 22, 2020
5407413
Update dependency io.grpc:grpc-bom to v1.30.2 (#511)
renovate[bot] Jul 22, 2020
2c32e90
Update dependency io.grpc:grpc-protobuf to v1.30.2 (#513)
renovate[bot] Jul 22, 2020
098b315
Updating changelog
grafnu Jul 22, 2020
123316f
1.8.1 release
grafnu Jul 22, 2020
c7a5eaf
GRPC timeouts + usi first command wait fix. (#555)
henry54809 Jul 22, 2020
c316494
Update dependency jsoneditor to v9.0.3 (#501)
renovate[bot] Jul 22, 2020
29f168e
Update dependency io.grpc:grpc-stub to v1.30.2 (#514)
renovate[bot] Jul 22, 2020
b26d5d9
Update dependency firebase-functions to v3.8.0 (#533)
renovate[bot] Jul 22, 2020
56af1e4
Adding more changelog items
grafnu Jul 22, 2020
097ea2d
1.8.2 release
grafnu Jul 22, 2020
368db70
Update dependency com.fasterxml.jackson.core:jackson-databind to v2.1…
renovate[bot] Jul 22, 2020
336710b
Automatic build script (#557)
grafnu Jul 23, 2020
e38c4a2
27 NTP Update (#525)
frgitdaq Jul 28, 2020
d244f7b
removed depreciated code
noursaidi Jul 28, 2020
bbc5afd
move ntp tests into network module
noursaidi Jul 28, 2020
da656e4
update docker containers
noursaidi Jul 28, 2020
6913a2b
fix docker containers
noursaidi Jul 29, 2020
350036f
Merge communication broadcast test from em-redstone:issue337-multicas…
noursaidi Jul 29, 2020
3327915
add network to ci test
noursaidi Jul 29, 2020
676b1a1
Move macoui test into network module
noursaidi Jul 29, 2020
3d9d954
remove connection/macoui module
noursaidi Jul 29, 2020
c1438e3
delete macoui folder, saved changes before comitting ...
noursaidi Jul 29, 2020
b67d79e
add network test to all.conf
noursaidi Jul 29, 2020
f882614
add missing java to dockerfile
noursaidi Jul 29, 2020
4cb3431
fix bug with mac_oui reporty
noursaidi Jul 29, 2020
eb1df80
add travis ci output
noursaidi Jul 29, 2020
7e8d6c3
fix travis ci 2
noursaidi Jul 29, 2020
77fb78c
final travis ci changes
noursaidi Jul 29, 2020
390d081
Stickler fixes
noursaidi Jul 29, 2020
6937a85
fix min-send flakiness
noursaidi Jul 29, 2020
d1cb952
fix minsend flakiness
noursaidi Jul 29, 2020
beec688
tests broken
noursaidi Jul 29, 2020
aa7ea50
unbreak daq (syntax error ..)
noursaidi Jul 29, 2020
bacdff7
remove curl option from faux
noursaidi Jul 29, 2020
aaf0265
travis fix
noursaidi Jul 29, 2020
e75feca
move faux dependancies, make arp option default
noursaidi Jul 30, 2020
fdfbb75
remove arp from faux (unsaved change)
noursaidi Jul 30, 2020
7168ae4
make curl option default
noursaidi Jul 30, 2020
762cc4f
resture curl option, make arpsend default
noursaidi Aug 4, 2020
445393d
fix formating
noursaidi Aug 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<module name="LineLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="100"/>
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>

Expand Down
19 changes: 9 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ validations/
*.save

# Runtime or sub-module files
inst/
faucet/
forch/
mininet/
local/
local_xxx
local.old
firebase/.firebaserc
firebase/.firebase
firebase/functions/package-lock.json
/inst/
/faucet/
/forch/
/udmi/
/mininet/
/local/
/firebase/.firebaserc
/firebase/.firebase
/firebase/functions/package-lock.json
nohup.out
**/node_modules/
.vscode/
Expand Down
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions bin/alt_faucet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -e

ROOT=$(realpath $(dirname $0)/..)
cd $ROOT
source etc/config_base.sh

if [ -z "$switch_setup_ext_br" ]; then
echo switch_setup.ext_br not defined for alternate faucet setup.
false
fi

if [ -z "$switch_setup_alt_port" ]; then
echo switch_setup.alt_port not defined for alternate faucet setup.
false
fi

inst_name=$switch_setup_ext_br

inst_dir=inst/faucet/daq-faucet-$inst_name
mkdir -p $inst_dir
cp config/faucet/faucet_$inst_name.yaml $inst_dir/faucet.yaml
echo Launching alternate faucet install $inst_name on $switch_setup_alt_port
echo DAQ autoclean docker kill daq-faucet-$inst_name
cmd/faucet $inst_name $switch_setup_alt_port
7 changes: 7 additions & 0 deletions bin/build_proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ sha1sum $proto_files > $WEB_ROOT/protos.hash

gen_path=$ROOT/protoc-gen-doc/bin/protoc-gen-doc

if [ -d venv ]; then
echo Entering virtual python environment...
source venv/bin/activate
fi

mkdir -p build/daq/proto build/proto
cp $proto_files build/daq/proto/
proto_files2=
Expand All @@ -56,3 +61,5 @@ mkdir -p libs/proto/
touch libs/proto/__init__.py
cp build/daq/proto/*.py libs/proto/
cp build/protos.html $WEB_ROOT/

python3 -m grpc_tools.protoc -I usi/src/main/proto/ --python_out=libs/proto/ --grpc_python_out=libs/proto/ usi/src/main/proto/usi.proto
82 changes: 82 additions & 0 deletions bin/build_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/bin/bash -e

if [ $# != 1 ]; then
echo $0 RELEASE_VERSION
false
fi

VERSION=$1
shift

ROOT=$(realpath $(dirname $0)/..)
cd $ROOT

changes=`git status --porcelain`
if [ -n "$changes" ]; then
echo Working tree not clean.
false
fi

git checkout master

changed=`git diff --name-only release_stable docs/changelog.md`
if [ -z "$changed" ]; then
git log release_stable..HEAD --pretty=oneline | sed -e 's/[a-z0-9]+/\*/g'
echo docs/changelog.md has not been updated since last release_stable
echo Use the log lines above for inspiration.
false
fi

tagged=`git rev-list -n 1 $VERSION 2>/dev/null` || true
if [ -n "$tagged" ]; then
echo Tag $VERSION already exists. Try the next version.
false
fi

source etc/config_base.sh

if [ "$host_tests" != config/modules/all.conf ]; then
echo Configure your system with host_tests=config/modules/all.conf
false
fi

cmd/build force $VERSION

cmd/build push

cat > /tmp/git_expected.expected <<EOF
M etc/docker_images.txt
M etc/docker_images.ver
EOF

git status --porcelain > /tmp/git_status.found

if ! diff /tmp/git_status.expected /tmp/git_status.found; then
echo Expected build images not found. Something went wrong.
false
fi
rm -f /tmp/git_status.*

git commit -a -m "$VERSION release"
git tag -a $VERSION -m "$VERSION release"
git push
git push --tags

# Check to see if a remote 'faucet' is defined, and if so, also update that.
faucetgit=`git config remote.faucet.url`
if [ -n "$faucetgit" ]; then
git push faucet
git push faucet --tags
fi

firebase/deploy.sh bos-daq-testing
git checkout release_testing && git reset --hard $VERSION

if [ -n "$faucetgit" ]; then
git push faucet
fi

# QA pass to make sure everything is ok.
# `firebase/deploy.sh daq-qualification-labs`
# `git checkout release_stable && git reset --hard $VERSION`
# `git push`
9 changes: 7 additions & 2 deletions bin/external_ovs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ source etc/config_base.sh

ext_intf=$switch_setup_data_intf
ext_dpid=$switch_setup_of_dpid
ext_ofpt=$switch_setup_lo_port
ext_brid=$switch_setup_ext_br
ext_brpt=$switch_setup_uplink_port

ext_pri=${ext_intf}
ext_sec=${ext_intf%-pri}-sec

echo ext_dpid is $ext_dpid
if [ -z "$switch_setup_alt_port" ]; then
ext_ofpt=$switch_setup_lo_port
else
ext_ofpt=$switch_setup_alt_port
fi

echo ext_dpid is $ext_dpid on port $ext_ofpt
echo network_config is $network_config

dpid=$(printf %016x $ext_dpid)
Expand Down
3 changes: 3 additions & 0 deletions bin/physical_sec
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ else
sudo ip addr flush dev $ext_ctrl
fi

echo Warmup ping for $ext_addr
ping -n -c 2 $ext_addr || true

echo Checking external connection to $ext_addr
if ! ping -n -c 2 $ext_addr; then
echo
Expand Down
2 changes: 1 addition & 1 deletion bin/python/combine_reports_from_date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_local_reports(device, reports_dir, start, end, count):
LOGGER.info('Looking for reports locally')
report_re = re.compile(r'^report_%s_(\d{4}-\d{2}-\d{2}T\d{6})\.json$' % device)
json_files = [f for f in os.listdir(reports_dir) if report_re.match(f)]
json_files.sort()
json_files.sort(reverse=True) # Match gcp behavior
if count and len(json_files) > count:
json_files = json_files[len(json_files) - count:]
for json_file in json_files:
Expand Down
30 changes: 0 additions & 30 deletions bin/registrar

This file was deleted.

36 changes: 29 additions & 7 deletions bin/setup_dev
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ FORCHB=${DAQ_FORCH_BRANCH}
FORCHX=$(cat etc/FORCH_VERSION)
FORCHV=${DAQ_FORCH_VER:-$FORCHX}

UDMIR=${DAQ_UDMI_REPO:-https://github.com/faucetsdn/udmi}
UDMIB=${DAQ_UDMI_BRANCH}
UDMIX=$(cat etc/UDMI_VERSION)
UDMIV=${DAQ_UDMI_VER:-$UDMIX}

MININET=https://github.com/mininet/mininet
MININETV=2.3.0d6
MININETV=$(cat etc/MININET_VERSION)

if [ -f .daq.local ]; then
echo Loading config from .daq.local
Expand All @@ -36,6 +41,10 @@ if [ "$FORCHX" != "$FORCHV" ]; then
echo $FORCHV > etc/FORCH_VERSION
fi

if [ "$UDMIX" != "$UDMIV" ]; then
echo $UDMIV > etc/UDMI_VERSION
fi

if [ -z "$AG" ]; then
AG="sudo apt-get -qqy --no-install-recommends"
fi
Expand Down Expand Up @@ -75,10 +84,6 @@ $AG install \
python$PVERSION python3-pkg-resources python3-setuptools \
python$PVERSION-dev python3-pip python emacs-nox python$PVERSION-venv

# Jump through some hoops for mininet, which still has some python2 deps.
$AG install python-pip
python2 -m pip install setuptools

if [ -d mininet ]; then
echo Checking mininet version matches $MININETV...
targetrev=$(cd mininet; git rev-parse $MININETV)
Expand Down Expand Up @@ -137,8 +142,9 @@ $PIP install --upgrade --index-url=https://pypi.python.org/simple Jinja2 \
google-api-core==1.16.0 \
google-cloud-storage==1.16.1 \
google-cloud-firestore==1.6.0 \
google-cloud-logging==1.14.0

google-cloud-logging==1.14.0 \
grpcio-tools==1.30.0

$PIP freeze
echo Resetting .cache directory permissions...
test -n "$USER" && sudo chown $USER -R $HOME/.cache
Expand Down Expand Up @@ -167,6 +173,18 @@ else
(cd forch; git fetch; git checkout $FORCHV)
fi

if [ -z "$UDMIV" ]; then
echo No udmi version found, skipping.
else
if [ ! -d udmi ]; then
echo Cloning $UDMIR...
git clone $UDMIR udmi
fi

echo Setting udmi version $UDMIV
(cd udmi; git fetch; git checkout $UDMIV)
fi

echo -n "DAQ commit "
git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true
echo
Expand All @@ -179,6 +197,10 @@ echo -n "Last FORCH commit "
(cd forch; git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true)
echo

echo -n "Last UDMI commit "
(cd udmi; git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true)
echo

docker --version

if ! docker images > /dev/null; then
Expand Down
63 changes: 0 additions & 63 deletions bin/setup_testing

This file was deleted.

Loading