415 Commits

Author SHA1 Message Date
b577404611 License under AP2.0 2025-05-04 14:56:59 +02:00
4b0a8c9899 Remove Debian package support 2025-05-04 14:56:50 +02:00
4e139d02f3 Reformat with blcak 25.1.0 - to match GitHub
Some checks failed
Lint / lint (push) Has been cancelled
2025-05-03 19:12:01 +02:00
641d0f0190 Version 0.0.8 - support 'af-packet' for containerlab 2025-05-03 14:47:17 +02:00
6879fa85dd Release 0.0.7 with sFlow support 2025-01-20 17:19:45 +01:00
ac13ffbdb1 Update config field 'sampling-rate', not 'sample-rate' 2024-10-28 16:23:43 +01:00
9a7003c46f Merge pull request #19 from pimvanpelt/sflow
sFlow plugin support
2024-10-28 16:19:53 +01:00
ab5f1e43c0 format with black 24.10.0 2024-10-28 16:18:37 +01:00
8f7c65d8ca bugfix: also dump 'mpls' state on interfaces 2024-10-28 16:16:10 +01:00
4ba8c59fd8 Add planner for sFlow 2024-10-28 16:13:34 +01:00
80058fceed The correct configuration option is 'sampling-rate' 2024-10-28 16:12:55 +01:00
78a6f413aa Add sflow schema, validators (currently nothing to do), and dumper 2024-10-28 15:49:35 +01:00
19b0354e85 Merge pull request #18 from lion7/main
Update debian dependencies
2024-10-25 14:05:21 +02:00
c859738b0f Add documentation of intended configuration elements 2024-10-25 14:04:16 +02:00
55700429de Update debian dependencies 2024-09-02 16:21:51 +02:00
e7c9a93702 test: use assertEqual instead of assertEquals 2024-09-02 16:21:41 +02:00
bc4b9b7aab Merge pull request #17 from steffann/patch-1
Update changelog to put 0.0.6 in the right place
2024-06-21 12:01:15 +02:00
f5f83b9580 Update changelog to put 0.0.6 in the right place 2024-06-18 18:39:09 +02:00
5381cf4490 release 0.0.6 2024-04-07 23:39:47 +02:00
f01c865c87 Emit config for loopbacks before interfaces
This is in preparation of moving to OSPFv3 on VPP.

> If no primary address exists for the interface selected, then the
> primary address of the first non-loopback interface that has one will be
> used regardless of this setting.

To to ensure that for IPv4-less transit networks, the loopback address
is chosen, make it the first interface (notably by ensuring that 'lcp
create' for the loopback interfaces comes before that of PHY and
sub-ints).
2024-04-07 23:36:30 +02:00
95f4013f27 Add example for loopback unnumbered 2024-04-07 19:10:31 +02:00
790f415e60 Add user-guide for unnumbered 2024-04-07 19:07:59 +02:00
58c505703c Update to v4 2024-04-07 19:07:38 +02:00
b49e2b004b lint: Fix a bunch of bare-except warnings 2024-04-07 18:13:15 +02:00
46cd4c3e8d lint: fix unused-variable 2024-04-07 18:04:12 +02:00
4e81cae29a Reformat 2024-04-07 18:03:36 +02:00
ed2edeb6e8 Bump version to 0.0.5, with unnumbered interfaces 2024-04-07 17:51:27 +02:00
8c3a708647 unnumbered: implement path planner 2024-04-07 17:51:08 +02:00
6949e72888 Assert that target unnumbered interfaces AND loopbacks also cannot be unnumbered 2024-04-07 17:16:25 +02:00
6352d6892e Add reasonable pylint config 2024-04-07 15:35:18 +02:00
c9c5a14f30 lint: remove unnecessary import 2024-04-07 15:34:58 +02:00
2a85eac702 lint: fix unnecessary f-string 2024-04-07 15:34:18 +02:00
09bdaa3fca lint: fix singleton-comparison 2024-04-07 15:32:28 +02:00
6212c5a82f unnumbered: add dumper() 2024-04-07 15:26:55 +02:00
426599e510 Also allow loopback interfaces to be unnumbered 2024-04-07 15:19:57 +02:00
476d909904 unnumbered: Add syntax and semantic checking and unit tests 2024-04-07 14:17:32 +02:00
e427d93197 Reformat 2024-04-07 13:11:09 +02:00
9da5be23fa Bump VERSION, fixes #15 2023-12-17 23:25:09 +01:00
1dd5512186 Ignore .eggs/ 2023-08-29 00:39:58 +02:00
ce2d5aacbb Remove dangling EGG from build 2023-08-29 00:39:31 +02:00
46877a4918 Redundant check, h/t gcolman@ 2023-08-29 00:38:10 +02:00
b4c5a8d337 Only mock config for vppcfg plan 2023-07-05 17:50:02 +02:00
2396b96252 bugfix: add 'err' scoped exception 2023-06-23 00:52:44 +02:00
6975757303 Merge ACL plugin work so-far 2023-06-23 00:50:19 +02:00
91122c70a4 acl: add dumper for acls
A reasonable attempt will be made to shorten the output of terms, but
due to the nature of the ACL plugin in VPP, all ACLs will be unrolled
into their individual ACEs (called 'terms').

- src/dst-port will only be emitted with UDP/TCP
- icmp-typc/code will only be emitted with ICMP/ICMPv6
- icmp-code/type and source/destination-ports ranges will be collapsed
  where appropriate.
- if protocol is 0, only L3 information will be emitted

NOTE: a bug in the VPP plugin will allow for ICMP 'sport' and 'dport'
upper value to be 16 bits. If an ACE is retrieved from the dataplane
regarding an ICMP or ICMPv6 (referring the 16 bit values to icmp type
and code), they will be truncated and a warning issued.
2023-06-23 00:42:24 +02:00
7d615fd338 Set MPLS for loopback and interface. Allow for --novpp and VPP changes 2023-06-23 00:42:08 +02:00
1bebb8d68d acl: add dumper for acls
A reasonable attempt will be made to shorten the output of terms, but
due to the nature of the ACL plugin in VPP, all ACLs will be unrolled
into their individual ACEs (called 'terms').

- src/dst-port will only be emitted with UDP/TCP
- icmp-typc/code will only be emitted with ICMP/ICMPv6
- icmp-code/type and source/destination-ports ranges will be collapsed
  where appropriate.
- if protocol is 0, only L3 information will be emitted

NOTE: a bug in the VPP plugin will allow for ICMP 'sport' and 'dport'
upper value to be 16 bits. If an ACE is retrieved from the dataplane
regarding an ICMP or ICMPv6 (referring the 16 bit values to icmp type
and code), they will be truncated and a warning issued.
2023-06-23 00:41:43 +02:00
28b8ba1485 Protect API calls that are missing, print a warning 2023-06-23 00:40:46 +02:00
603e26a313 Set MPLS for loopback and interface. Allow for --novpp and VPP changes 2023-06-23 00:38:39 +02:00
c7ba451016 Collapse the error messages to force consistency 2023-06-23 00:33:39 +02:00