818c45e09c
acl: consistency in error messages, reformatted, and updated unittests
Pim van Pelt
2023-01-16 22:20:41 +00:00
7914659fa5
icmp-type/code also match for proto 58 (ipv6-icmp)
Pim van Pelt
2023-01-16 21:09:08 +00:00
c190dfbd2b
Add a warning in case the tag contains ' or " characters
Pim van Pelt
2023-01-16 20:57:49 +00:00
5fd2d0859c
Remove dangling file
Pim van Pelt
2023-01-16 19:52:46 +00:00
16e946c92c
Copy over the acl.tag into the description when dumping
Pim van Pelt
2023-01-16 19:12:33 +00:00
ace08ac052
Refuse to work with ACLs if there are duplicate tags -- it means something/somebody has been inserting them outside of vppcfg, and this breaks the requirement that vppcfg.acls. is the same uniquely identified vpp.acl.tag
Pim van Pelt
2023-01-16 19:07:04 +00:00
f654e78ed5
Fix pylint warning
Pim van Pelt
2023-01-16 18:00:24 +00:00
02ca2e22cd
acl: add dumper for acls
Pim van Pelt
2023-01-16 17:12:48 +00:00
efef03ea42
address pylint
Pim van Pelt
2023-01-16 14:41:07 +00:00
9a175e1bba
Add an ACE with a an example prefixlist
Pim van Pelt
2023-01-16 14:36:05 +00:00
5824af9666
Add a unit test for empty src/dst
Pim van Pelt
2023-01-16 14:30:56 +00:00
a282a5358a
acl: rework source/destination
Pim van Pelt
2023-01-16 14:24:36 +00:00
0e4490fc06
Make 'any' a reserved name for prefixlists
Pim van Pelt
2023-01-16 14:20:07 +00:00
8a7c690ee5
Add ability to filter get_network_list() by ipv4 or ipv6, and add tests
Pim van Pelt
2023-01-16 12:15:24 +00:00
4e2354c3d8
Add acl.get_network_list() + tests; Update docs to reference the ability to use prefixlist as a source/destination
Pim van Pelt
2023-01-16 12:03:34 +00:00
a622b1d54e
refactor: indirect interface_names to interfaces
Pim van Pelt
2022-12-03 12:14:07 +00:00
806f4f4fc8
Merge branch 'main' of github.com:pimvanpelt/vppcfg into main
Pim van Pelt
2022-12-03 09:55:37 +00:00
e6936e94e9
Remove workaround for gerrit.fd.io/r/c/vpp/+/35479
Pim van Pelt
2022-12-03 09:55:24 +00:00
d4911a3c99
Update PCI bus enumeration for hippo's regression test. Hu12/* -> Hu13/*
Pim van Pelt
2022-12-03 09:54:53 +00:00
c10b7bbabb
Merge pull request #10 from vifino/vifino/cleanup
Pim van Pelt
2022-10-28 15:12:29 +02:00
60c4324f7e
vppapi: Use VPPApiJSONFiles instead of reinventing the wheel.
Adrian Pistol
2022-10-28 03:02:28 +02:00
b62f5313dd
release: bump version to 0.0.2 for Debian and PIP
Pim van Pelt
2022-07-18 13:05:58 +00:00
849b51be67
pylint: move most implementation detail to private methods
Pim van Pelt
2022-07-18 08:03:56 +00:00
8121eba598
pylint: Remove a few exception lint warnings
Pim van Pelt
2022-07-18 07:46:12 +00:00
343a59b376
bugfix: remove addresses also when there is a diff, not only when the interface is not present; remove duplicate block of code
Pim van Pelt
2022-07-18 07:37:00 +00:00
18260e3465
Call the correct new location of vppcfg.py
Pim van Pelt
2022-07-18 07:36:14 +00:00
1b5233bac1
Merge pull request #8 from mdr78/main
Pim van Pelt
2022-07-13 14:34:22 +02:00
7d7e1e2e21
build: add emacs undo tree to .gitignore
Ray Kinsella
2022-07-13 13:28:10 +01:00
1abcc38bdd
build: add empty __init__.py to satisfy build / pylint
Pim van Pelt
2022-07-13 12:28:15 +00:00
2aab450735
Merge pull request #7 from mdr78/main
Pim van Pelt
2022-07-13 14:21:34 +02:00
bc0310e088
Study and respond to PyLint
Pim van Pelt
2022-04-22 19:31:38 +00:00
f8a6c3eba7
Add a note about black code formatting
Pim van Pelt
2022-04-22 13:13:42 +00:00
b7ff5479ac
Fix lint errors with black
Pim van Pelt
2022-04-22 13:10:16 +00:00
1b49059ffb
Add the --diff flag to black to show what should change
Pim van Pelt
2022-04-22 13:09:09 +00:00
9ee9a32693
Test github push action
Pim van Pelt
2022-04-22 13:07:04 +00:00
d9e46b4041
Add a black (code formatting) github action on PR and push
Pim van Pelt
2022-04-22 13:06:21 +00:00
baaaaa67b5
Initial formatting run with Black. Integration tests and unit tests pass before and after this change.
Pim van Pelt
2022-04-22 13:05:55 +00:00
b375ddb433
Final f-string conversions that flynt did not catch. Tested: integration test before and after are clean
Pim van Pelt
2022-04-22 11:48:08 +00:00
e13694a566
Move to f-strings
Pim van Pelt
2022-04-22 10:58:41 +00:00
13cdba1e1d
Remove commented out 'print' debug lines
Pim van Pelt
2022-04-22 09:33:27 +00:00
d8c0dd4ab4
Skip TAPs that are an LCP
Pim van Pelt
2022-04-21 19:17:52 +00:00
e6f271181b
bugfix - only print MAC on PHYs, not sub-interfaces
Pim van Pelt
2022-04-15 10:46:36 +00:00
58cf9e6b0c
A few cosmetic refactors
Pim van Pelt
2022-04-14 11:46:04 +00:00
eee718c77c
Refactor and clean up some repetitive code
Pim van Pelt
2022-04-12 11:04:13 +00:00
594e21afa4
Remove redundant code - remove_interface() already removes TAP cache entries
Pim van Pelt
2022-04-12 10:47:45 +00:00
2b1287f4ef
Remove spurious logging
Pim van Pelt
2022-04-12 09:11:56 +00:00
6637820021
Add TAP support
Pim van Pelt
2022-04-12 08:57:05 +00:00
95f56bc865
bugfix: correct ordering of iface_mtu and host_mtu
Pim van Pelt
2022-04-10 16:14:58 +00:00
06046cd51a
Allow TAP instances to be interfaces
Pim van Pelt
2022-04-10 16:10:19 +00:00
5fc3b4c42b
Correct the returnvalue of get_parent_by_name() if ifname==None, add tests for that
Pim van Pelt
2022-04-10 15:48:34 +00:00
72668bdb18
Allow for the integration test to be run in -strict mode, exiting the execution in case errors were found
Pim van Pelt
2022-04-10 15:06:37 +00:00