Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 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
2ee7ea5
Incorporate manual test comments (#499)
noursaidi Jul 29, 2020
c49a1d1
Update dependency io.grpc:grpc-bom to v1.31.0 (#561)
renovate[bot] Jul 31, 2020
673550a
Update dependency io.grpc:grpc-stub to v1.31.0 (#566)
renovate[bot] Jul 31, 2020
898111a
Update dependency io.grpc:grpc-protobuf to v1.31.0 (#564)
renovate[bot] Jul 31, 2020
820f101
Update dependency io.grpc:grpc-netty-shaded to v1.31.0 (#562)
renovate[bot] Jul 31, 2020
63cde47
misc updates to docs (#568)
pbatta Jul 31, 2020
9a36bae
Github actions (#558)
henry54809 Aug 2, 2020
83172aa
Remove faux dependencies from subset directory (#567)
noursaidi Aug 3, 2020
85b132a
Test infrastructure cleanup (#572)
grafnu Aug 3, 2020
4886fec
Cleanup Network Tests and Network Test Module (#565)
noursaidi Aug 4, 2020
67511b4
1.9.0 release
henry54809 Aug 4, 2020
9fbd8d3
Fix google-cloud-core version (#574)
grafnu Aug 5, 2020
8372ad4
security.admin.password changes (#461)
em-redstone Aug 5, 2020
a9aaf3a
Minor cleanup (#577)
grafnu Aug 6, 2020
64179be
Add perodic tests (#575)
grafnu Aug 6, 2020
8b811f2
Adding default dns for static ip faux devices (#576)
henry54809 Aug 6, 2020
75a3d0a
Remove deprecated UDMI docs
grafnu Aug 7, 2020
9947cd0
Update dependency gradle to v6.6 (#585)
renovate[bot] Aug 10, 2020
470d9e4
Update dependency commons-net:commons-net to v3.7 (#578)
renovate[bot] Aug 10, 2020
248f47e
Update dependency firebase-functions to v3.9.0 (#569)
renovate[bot] Aug 10, 2020
d281472
refactoring for vlan trigger (#582)
henry54809 Aug 11, 2020
8f385a0
fix gcp combine report test (#587)
henry54809 Aug 11, 2020
784dc6a
Feature/vlan trigger (#588)
henry54809 Aug 12, 2020
e4fccdf
Update dependency firebase-admin to v9.1.0 (#594)
renovate[bot] Aug 13, 2020
ba1324d
Update dependency io.grpc:grpc-protobuf to v1.31.1 (#592)
renovate[bot] Aug 13, 2020
678cb21
Update dependency io.grpc:grpc-netty-shaded to v1.31.1 (#591)
renovate[bot] Aug 13, 2020
f0a8f06
Update dependency io.grpc:grpc-bom to v1.31.1 (#590)
renovate[bot] Aug 13, 2020
1ed4cb9
Update dependency org.apache.maven.plugins:maven-resources-plugin to …
renovate[bot] Aug 13, 2020
040f96f
Update dependency io.grpc:grpc-stub to v1.31.1 (#593)
renovate[bot] Aug 13, 2020
e718927
Update dependency firebase-functions to v3.9.1 (#589)
renovate[bot] Aug 14, 2020
c83ed79
Update registrar tool for latest UDMI version (#596)
grafnu Aug 14, 2020
749e33f
security.nmap.http test (#563)
pisuke Aug 14, 2020
46ed8d2
Update dependency jsoneditor to v9.0.4 (#597)
renovate[bot] Aug 17, 2020
46dfa01
Do not infinite spawn ntp (#598)
grafnu Aug 17, 2020
ffd96eb
Update dependency @google-cloud/pubsub to v2.5.0 (#599)
renovate[bot] Aug 18, 2020
dd08f42
Refactor base test module and use stable test set id (#600)
grafnu Aug 18, 2020
f842fd3
Feature/convert switchtests (#601)
henry54809 Aug 19, 2020
1b73798
Build script tweaks
grafnu Aug 19, 2020
9e008a2
1.9.1 changelog
grafnu Aug 19, 2020
8b57239
Updating docker_images
grafnu Aug 19, 2020
c35b375
Add assert for module name length (#603)
grafnu Aug 19, 2020
5369725
Auto rewrite usi_set.url (#602)
henry54809 Aug 19, 2020
ed46069
Cleaning up build script
grafnu Aug 19, 2020
253be7e
1.9.3 release
grafnu Aug 20, 2020
368f729
USI debug messages (#606)
henry54809 Aug 20, 2020
173e60f
Update dependency firebase-admin to v9.1.1 (#608)
renovate[bot] Aug 20, 2020
63328b6
Add module config system logging (#607)
grafnu Aug 21, 2020
5a50a50
Adding enum defaults and more USI AT switch tests (#610)
henry54809 Aug 21, 2020
9c0ad5e
Update dependency firebase-functions to v3.11.0 (#604)
renovate[bot] Aug 21, 2020
6f2879b
Improvements for test development debugging (#609)
grafnu Aug 22, 2020
68830e6
Increase nmap module timeout (#611)
grafnu Aug 22, 2020
18124ad
Changelog 1.9.5
grafnu Aug 22, 2020
a8cae2d
1.9.5 release
grafnu Aug 22, 2020
d8fb74d
Restore tab redaction (#612)
grafnu Aug 22, 2020
3f855f3
usi logs gcp and local capture (#613)
henry54809 Aug 23, 2020
f7da973
Add usi to build check path (#614)
grafnu Aug 23, 2020
ce3bf1b
Removing usi gcp log driver setup
grafnu Aug 23, 2020
702baad
Use daq_run_id for gcp combine_results (#616)
grafnu Aug 24, 2020
0986517
USI docker gcplogs config (#615)
henry54809 Aug 25, 2020
55c879f
Update dependency gradle to v6.6.1 (#617)
renovate[bot] Aug 25, 2020
b452810
Cisco Switches parsing fix (#623)
henry54809 Sep 1, 2020
9ce0f14
Switch poe updates (#605)
jhughesoti Sep 4, 2020
d6d442a
1.9.6 release
henry54809 Sep 8, 2020
7734342
Adding timestamps to ipaddr test log messages. (#627)
henry54809 Sep 9, 2020
8588cbb
Update dependency jsoneditor to v9.0.5 (#628)
renovate[bot] Sep 10, 2020
90badf2
Update dependency io.grpc:grpc-netty-shaded to v1.32.1 (#629)
renovate[bot] Sep 10, 2020
44fb11b
Update dependency io.grpc:grpc-stub to v1.32.1 (#632)
renovate[bot] Sep 10, 2020
70ce553
Update dependency io.grpc:grpc-bom to v1.32.1 (#631)
renovate[bot] Sep 10, 2020
11fc06d
Update dependency io.grpc:grpc-protobuf to v1.32.1 (#630)
renovate[bot] Sep 10, 2020
23449a7
Merging ipaddr and dhcp (#634)
henry54809 Sep 11, 2020
5538aff
add raw output from usi. (#636)
henry54809 Sep 11, 2020
c2b5350
Bump node-fetch from 2.6.0 to 2.6.1 in /firebase/functions (#635)
dependabot[bot] Sep 12, 2020
6644073
Update dependency org.junit.jupiter:junit-jupiter to v5.7.0 (#639)
renovate[bot] Sep 13, 2020
3817550
Add DNS hostname resolution test (#638)
noursaidi Sep 14, 2020
ff0675f
switch config files (#633)
pisuke Sep 14, 2020
28c75d0
Update dependency firebase-admin to v9.2.0 (#641)
renovate[bot] Sep 15, 2020
0f9669a
Update dependency jsoneditor to v9.1.0 (#642)
renovate[bot] Sep 15, 2020
9d242d6
Feature/native tests (#625)
henry54809 Sep 16, 2020
93a6a12
Clear out port_acls directory for local test runs. (#640)
grafnu Sep 16, 2020
bc93eb4
Disable stickler print-function check (#637)
grafnu Sep 16, 2020
fee1b78
Update UDMI version to 1.2.0 (#646)
grafnu Sep 17, 2020
9ea0dbd
granular dhcp test timeouts. (#645)
henry54809 Sep 17, 2020
2cbbada
fix no_test option (#647)
henry54809 Sep 18, 2020
ee9c420
Tls updates (#626)
jhughesoti Sep 19, 2020
1d5ea87
Adding node-forge upgrade (#649)
grafnu Sep 22, 2020
e376cc7
ipaddr DHCP timeout behavior change (#652)
henry54809 Sep 22, 2020
87ccff3
Update dependency node-forge to v0.10.0 [SECURITY] (#650)
renovate[bot] Sep 23, 2020
d43ec39
Basic UDMI provisioner test (#648)
grafnu Sep 23, 2020
a02abde
Pin dependency node-forge to 0.10.0 (#653)
renovate[bot] Sep 23, 2020
3cb5ce7
Cisco switch more expected table output (#657)
henry54809 Sep 25, 2020
37aafa3
DHCP Short (9) (#579)
frgitdaq Sep 30, 2020
34ab303
Private Address (6) (#584)
frgitdaq Sep 30, 2020
b1a4ff0
Tls timeout fix (#651)
jhughesoti Sep 30, 2020
38d1733
Add manual tests to resource config (#621)
noursaidi Oct 1, 2020
c9285ce
gateway refactoring (#662)
henry54809 Oct 3, 2020
ccde0e4
Update dependency commons-net:commons-net to v3.7.1 (#663)
renovate[bot] Oct 5, 2020
c15c97b
New "new ip" assignment (#666)
henry54809 Oct 6, 2020
a245e35
1.9.8 release
pbatta Oct 6, 2020
60631d0
Rename startup script (#669)
henry54809 Oct 7, 2020
d6f3d7d
External Gateway (#664)
henry54809 Oct 7, 2020
aac036a
Update dependency jsoneditor to v9.1.1 (#654)
renovate[bot] Oct 9, 2020
8495558
set gateway set vlan (#671)
henry54809 Oct 10, 2020
55075a3
Update NTP support test fix #622 (#595)
frgitdaq Oct 12, 2020
f1ea751
IP Change (11) (#658)
frgitdaq Oct 13, 2020
a6fb569
Add SSH Reporting, SSH Bug Fixes (#670)
noursaidi Oct 13, 2020
8b41fad
Fix Cisco switch power response (#679)
henry54809 Oct 13, 2020
86fa580
Ip addr flush (#672)
pisuke Oct 13, 2020
284b1b1
1.9.9 release
pbatta Oct 14, 2020
6a4f21b
Merge branch 'master' of github.com:faucetsdn/daq
pbatta Oct 14, 2020
c3c8938
1.9.10 release
pbatta Oct 14, 2020
67574a2
Bump junit from 4.13 to 4.13.1 in /subset/switches (#678)
dependabot[bot] Oct 14, 2020
a299adf
Update dependency io.grpc:grpc-stub to v1.32.2 (#677)
renovate[bot] Oct 14, 2020
226bec8
Update dependency io.grpc:grpc-protobuf to v1.32.2 (#675)
renovate[bot] Oct 14, 2020
99e19ce
Update dependency io.grpc:grpc-netty-shaded to v1.32.2 (#674)
renovate[bot] Oct 14, 2020
2f3cff3
Update dependency io.grpc:grpc-bom to v1.32.2 (#676)
renovate[bot] Oct 14, 2020
9b8a549
Update dependency junit:junit to v4.13.1 (#673)
renovate[bot] Oct 14, 2020
2df3632
Bump junit from 4.13 to 4.13.1 in /usi (#680)
dependabot[bot] Oct 14, 2020
d1c9bcf
DHCP Change (20) (#665)
frgitdaq Oct 15, 2020
77a8b50
Test renaming (#682)
pisuke Oct 19, 2020
24d85e9
Add packaging files (#684)
pomodorox Oct 20, 2020
79d8d51
Add minimal setup_docker
grafnu Oct 22, 2020
788592b
Add gRPC client to send device result to server (#656)
pomodorox Oct 22, 2020
8e4d715
Update dependency io.grpc:grpc-protobuf to v1.33.0 (#688)
renovate[bot] Oct 22, 2020
6a821cb
Update dependency io.grpc:grpc-bom to v1.33.0 (#686)
renovate[bot] Oct 22, 2020
6dd7993
Update dependency gradle to v6.7 (#681)
renovate[bot] Oct 22, 2020
237ff32
Update dependency io.grpc:grpc-netty-shaded to v1.33.0 (#687)
renovate[bot] Oct 22, 2020
6a62316
Add simple setup option (#693)
grafnu Oct 23, 2020
47814f6
Attempt python3.8 update (#696)
grafnu Oct 23, 2020
a692cee
Separate out cmd/start (#695)
grafnu Oct 23, 2020
6643326
Create EXT_STACK mode for DAQ (#698)
grafnu Oct 26, 2020
5774d74
Clean up VLAN trigger setup for FOT integration (#700)
grafnu Oct 29, 2020
c8d5d8c
Minor refactor of port activation logic (#705)
grafnu Nov 2, 2020
245bb0a
Dynamically generate dhcp reflection for vlan triggers (#701)
grafnu Nov 2, 2020
10bfc86
Update dependency firebase-admin to v9.3.0 (#692)
renovate[bot] Nov 5, 2020
858e9f7
Update dependency io.grpc:grpc-netty-shaded to v1.33.1 (#703)
renovate[bot] Nov 6, 2020
1e4f832
Update dependency @google-cloud/pubsub to v2.6.0 (#690)
renovate[bot] Nov 6, 2020
f2e7c0c
Update dependency commons-net:commons-net to v3.7.2 (#683)
renovate[bot] Nov 6, 2020
35d9314
Update dependency jsoneditor to v9.1.2 (#707)
renovate[bot] Nov 9, 2020
2756daa
Adding a IP that falls in device ip's subnet to test hosts (#710) (#713)
henry54809 Nov 18, 2020
0a9fd52
Add external DHCP subnet config (#714)
henry54809 Nov 19, 2020
43c398d
add result line for connection.network.mac_address (#697)
noursaidi Nov 20, 2020
c3a1227
Update report aligning to the mockup (#717)
noursaidi Nov 25, 2020
21dcbcb
Setups update (#706)
pisuke Dec 12, 2020
01156d8
Fix setuptools install (#721)
grafnu Dec 13, 2020
edc6e74
Lower codecov target
grafnu Dec 15, 2020
a3f781d
Update MUD tests (#726)
pomodorox Dec 31, 2020
24b8f9a
remove information tests
noursaidi Jan 1, 2021
9cf7508
remove "information category", ci fix for previous commit
noursaidi Jan 1, 2021
db58712
ci fix previous commit, remove information category
noursaidi Jan 1, 2021
4a0540b
update test_site/module_config
noursaidi Jan 1, 2021
82a62fe
fix device_report
noursaidi Jan 1, 2021
088da45
align changes for info in all module_configs
noursaidi Jan 3, 2021
6df1025
Remove accidentally included files
noursaidi Jan 4, 2021
bd039bc
sticklr fix
noursaidi Jan 4, 2021
56267d5
Merge branch 'issue712-remove-info' of github.com:noursaidi/daq into …
noursaidi Jan 4, 2021
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
75 changes: 75 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: DAQ test suite

on:
push:
pull_request:
schedule:
- cron: '0 */2 * * *'

jobs:
integration_tests:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
test: [base, many, aux, topo, modules, dhcp]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Installing dependencies
run: |
bin/setup_daq
- name: Running ${{ matrix.test }} test
env:
DOCKER_STARTUP_TIMEOUT_MS: 60000
GCP_BASE64_CRED: ${{ secrets.GCP_BASE64_CRED }}
run: |
bin/test_daq ${{ matrix.test }}
- name: Generated test report
if: ${{ always() }}
run: |
echo '************* Use sed to filter out timestamp prefix *************'
echo 'Download log archive, find the right job, and use:'
echo " sed -e 's/^[-:.0-9TZ]\+ //' 7_Generated\ test\ report.txt"
cat inst/test_${{ matrix.test }}.out

unit_tests:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
bin/setup_dev
- name: Check style
run: |
bin/check_style
- name: Unit test
run: |
testing/run_unit_tests.sh

usi_tests:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Build with Maven
run: mvn -B clean compile test assembly:single --file usi/pom.xml
22 changes: 12 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ protoc-gen-doc/
firebase/public/firebase_config.js
firebase/public/deploy_version.js

# Kleudgy apparmor workaround
binhack/tcpdump

validations/

\#*
Expand All @@ -21,16 +24,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.

4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[MASTER]
good-names=fd,e
output-format=parseable
disable=F0401,R0201,R0902,W0703,I0011,W0403,E1102,R0903,E0611,W0511,W0613
disable=F0401,R0201,R0902,W0703,I0011,W0403,E1102,R0903,E0611,W0511,W0613,E1601
max-line-length=100
ignored-classes=
OrchestrationConfig, DevicesState, PortBehavior
2 changes: 2 additions & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ linters:
python: 3
max-line-length: 100
py3k:
ignore: E1601
checkstyle:
config: ./.checkstyle.xml
files:
ignore:
- 'libs/proto/*'
- '*__init__.py'
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![CI Tests](https://github.com/faucetsdn/daq/workflows/DAQ%20test%20suite/badge.svg?branch=master)

# DAQ: <b>D</b>evice <b>A</b>utomated <b>Q</b>ualification for IoT Devices.

DAQ is a framework designed to test and operate IoT devices in an enterprise IoT environment.
Expand All @@ -17,10 +19,6 @@ More details about the goals and objectives behind this can be found in the IEEE
[SDN capabilities](https://queue.acm.org/detail.cfm?id=2560327), such as the
[FAUCET OpenFlow controller](https://faucet.nz/), to orchestrate "microsegmentation" on
the network for improved security.
* [_Universal Device Management Interface (UDMI)_](schemas/udmi/README.md): An interface
specification designed to normalize the management of IoT devices from different manufacturers.
This is a simple standard that provides for many of the common features not present in
existing protocols (e.g. BACnet).
* _Device Management Tools_: A suite of tools, consoles, and dashboards that help operate
a robust ecosystem of IoT devices. (Details forthcoming.)

Expand Down
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
2 changes: 1 addition & 1 deletion bin/build_hash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build_built=.build_built
faucet_version=$(cd faucet; git rev-list -n 1 HEAD)
echo "$faucet_version faucet/HEAD" > $build_files

find docker/ subset/ -type f | sort | xargs sha1sum >> $build_files
find docker/ subset/ usi/ -type f | sort | xargs sha1sum >> $build_files
build_hash=`cat $build_files | sha256sum | awk '{print $1}'`

if [ "$1" == check ]; then
Expand Down
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
75 changes: 75 additions & 0 deletions bin/build_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/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 release_stable
git fetch faucet
git merge faucet/release_stable
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

git commit -a -m "$VERSION release"
git tag -a $VERSION -m "$VERSION release"
firebase/deploy.sh bos-daq-testing

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

git checkout release_testing && git reset --hard $VERSION
git push
if [ -n "$faucetgit" ]; then
git push faucet
fi

git log -n 1

# 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: 1 addition & 8 deletions bin/combine_reports
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@ cd $ROOT

source etc/config_base.sh

FAILED=
PYTHONPATH=daq python3 bin/python/combine_reports_from_date_range.py $conf_file $@ || FAILED=true

if [ -n "$FAILED" ]; then
echo
echo Usage: $0 [from_time] [to_time] [from_gcp]
false
fi
PYTHONPATH=daq python3 bin/python/combine_reports.py $conf_file $@
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
5 changes: 4 additions & 1 deletion bin/physical_sec
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ if [ -z "$ext_ctrl" ]; then
else
echo Bridging $ext_ctrl to $ctrl_bridge
sudo ovs-vsctl add-port $ctrl_bridge $ext_ctrl
sudo ip addr flush dev $ext_ctrl
sudo ip -l 200 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
Loading