From 67cf858c8727f7f232aa4648510335f2b2028aaa Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 16 Sep 2022 16:18:30 +0000 Subject: ids: T4557: Migrate threshold and add new threshold types Migrate "service ids ddos-protection threshold xxx" to "service ids ddos-protection general threshold xxx" Add new threshold types: set service ids ddos-protection threshold tcp xxx set service ids ddos-protection threshold udp xxx set service ids ddos-protection threshold icmp xxx --- interface-definitions/include/ids/threshold.xml.i | 38 +++++++++++++++ .../include/version/ids-version.xml.i | 3 ++ .../service-ids-ddos-protection.xml.in | 56 ++++++++++------------ 3 files changed, 67 insertions(+), 30 deletions(-) create mode 100644 interface-definitions/include/ids/threshold.xml.i create mode 100644 interface-definitions/include/version/ids-version.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/ids/threshold.xml.i b/interface-definitions/include/ids/threshold.xml.i new file mode 100644 index 000000000..e21e3a005 --- /dev/null +++ b/interface-definitions/include/ids/threshold.xml.i @@ -0,0 +1,38 @@ + + + + Flows per second + + u32:0-4294967294 + Flows per second + + + + + + + + + Megabits per second + + u32:0-4294967294 + Megabits per second + + + + + + + + + Packets per second + + u32:0-4294967294 + Packets per second + + + + + + + diff --git a/interface-definitions/include/version/ids-version.xml.i b/interface-definitions/include/version/ids-version.xml.i new file mode 100644 index 000000000..9133be02b --- /dev/null +++ b/interface-definitions/include/version/ids-version.xml.i @@ -0,0 +1,3 @@ + + + diff --git a/interface-definitions/service-ids-ddos-protection.xml.in b/interface-definitions/service-ids-ddos-protection.xml.in index 86fc4dffa..a661b845d 100644 --- a/interface-definitions/service-ids-ddos-protection.xml.in +++ b/interface-definitions/service-ids-ddos-protection.xml.in @@ -107,42 +107,38 @@ Attack limits thresholds - + - Flows per second - - u32:0-4294967294 - Flows per second - - - - + General threshold - - + + #include + + + - Megabits per second - - u32:0-4294967294 - Megabits per second - - - - + TCP threshold - - + + #include + + + - Packets per second - - u32:0-4294967294 - Packets per second - - - - + UDP threshold - + + #include + + + + + ICMP threshold + + + #include + + -- cgit v1.2.3