Skip to content

Commit d315eae

Browse files
Merge pull request #49 from NETWAYS/refactoring
Refactoring
2 parents 31dcca8 + 18ec088 commit d315eae

File tree

7 files changed

+323
-289
lines changed

7 files changed

+323
-289
lines changed

.clang-format

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
BasedOnStyle: LLVM
21
UseTab: ForContinuationAndIndentation
32
IndentWidth: 4
43
TabWidth: 4
54
AllowShortIfStatementsOnASingleLine: false
65
BreakBeforeBraces: Attach
76
AlignConsecutiveMacros: true
8-
ColumnLimit: 140
7+
ColumnLimit: 100
98
IndentPPDirectives: AfterHash
109
SortIncludes: Never
11-
InsertBraces: true
1210
AllowShortEnumsOnASingleLine: false
11+
BinPackArguments: true
12+
InsertBraces: true

.github/workflows/build.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v5
1515

16-
- uses: actions/setup-python@v6
17-
with:
18-
python-version: '3.x'
19-
cache: pip
20-
21-
- name: Install pip packages
22-
run: pip install -r .github/requirements.txt
23-
2416
- name: Install dependencies
2517
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev
2618

@@ -32,18 +24,6 @@ jobs:
3224
- name: Make
3325
run: make
3426

35-
- name: Start simmulation
36-
run: |
37-
setup-snmpsim-data /tmp/data
38-
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611
39-
40-
- name: Sleep
41-
run: sleep 30s
42-
shell: bash
43-
44-
- name: check_interfaces with some cisco stuff
45-
run: ./check_interfaces -h 127.0.0.1 --port=1611 -c cisco-c3560 -d
46-
4727
clang-build:
4828
runs-on: ubuntu-latest
4929
env:
@@ -53,14 +33,6 @@ jobs:
5333
steps:
5434
- uses: actions/checkout@v5
5535

56-
- uses: actions/setup-python@v6
57-
with:
58-
python-version: '3.x'
59-
cache: pip
60-
61-
- name: Install pip packages
62-
run: pip install -r .github/requirements.txt
63-
6436
- name: Install dependencies
6537
run: sudo apt-get update && sudo apt-get install -y libsnmp-dev
6638

@@ -71,15 +43,3 @@ jobs:
7143
7244
- name: Make
7345
run: make
74-
75-
- name: Start simmulation
76-
run: |
77-
setup-snmpsim-data /tmp/data
78-
snmpsim-command-responder --daemonize --pid-file /tmp/snmp --data-dir=/tmp/data/network/switch --agent-udpv4-endpoint=127.0.0.1:1611
79-
80-
- name: Sleep
81-
run: sleep 30s
82-
shell: bash
83-
84-
- name: check_interfaces with some cisco stuff
85-
run: ./check_interfaces -h 127.0.0.1 --port=1611 -c cisco-c3560 -d

0 commit comments

Comments
 (0)