Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
BasedOnStyle: LLVM
UseTab: ForContinuationAndIndentation
IndentWidth: 4
TabWidth: 4
AllowShortIfStatementsOnASingleLine: false
BreakBeforeBraces: Attach
AlignConsecutiveMacros: true

ColumnLimit: 130
ColumnLimit: 100
IndentPPDirectives: AfterHash
SortIncludes: Never
AllowShortEnumsOnASingleLine: false
BinPackArguments: true
InsertBraces: true
44 changes: 0 additions & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,13 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip

- name: Install pip packages
run: pip install -r .github/requirements.txt

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev

- name: Make
run: make

- name: Start simmulation
run: |
setup-snmpsim-data /tmp/data
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611

- name: Sleep
run: sleep 60s
shell: bash

- name: check_cisco_health
run: |
chmod 0755 check_cisco_health
./check_cisco_health -h 127.0.0.1:1611 -c cisco-c3750 -t 30000

clang-build:
runs-on: ubuntu-latest
env:
Expand All @@ -50,30 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip

- name: Install pip packages
run: pip install -r .github/requirements.txt

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev

- name: Make
run: make

- name: Start simmulation
run: |
setup-snmpsim-data /tmp/data
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611

- name: Sleep
run: sleep 60s
shell: bash

- name: check_cisco_health
run: |
chmod 0755 check_cisco_health
./check_cisco_health -h 127.0.0.1:1611 -c cisco-c3750 -t 30000
Loading