Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 1 | /* |
Dave Barach | ac0326f | 2020-07-14 18:30:05 -0400 | [diff] [blame] | 2 | * Copyright (c) 2015-2020 Cisco and/or its affiliates. |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
Jakub Grajciar | aa4438a | 2019-04-03 14:05:11 +0200 | [diff] [blame] | 16 | option version = "1.0.1"; |
| 17 | |
| 18 | import "vnet/interface_types.api"; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 19 | |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 20 | /** \brief cop: enable/disable junk filtration features on an interface |
| 21 | @param client_index - opaque cookie to identify the sender |
| 22 | @param context - sender context, to match reply w/ request |
| 23 | @param sw_if_inded - desired interface |
| 24 | @param enable_disable - 1 => enable, 0 => disable |
| 25 | */ |
| 26 | |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 27 | autoreply define cop_interface_enable_disable |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 28 | { |
Ole Troan | f916414 | 2020-09-15 11:37:16 +0200 | [diff] [blame] | 29 | option deprecated; |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 30 | u32 client_index; |
| 31 | u32 context; |
Jakub Grajciar | aa4438a | 2019-04-03 14:05:11 +0200 | [diff] [blame] | 32 | vl_api_interface_index_t sw_if_index; |
| 33 | bool enable_disable; |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 34 | }; |
| 35 | |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 36 | /** \brief cop: enable/disable whitelist filtration features on an interface |
| 37 | Note: the supplied fib_id must match in order to remove the feature! |
Jakub Grajciar | aa4438a | 2019-04-03 14:05:11 +0200 | [diff] [blame] | 38 | |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 39 | @param client_index - opaque cookie to identify the sender |
| 40 | @param context - sender context, to match reply w/ request |
| 41 | @param sw_if_index - interface handle, physical interfaces only |
| 42 | @param fib_id - fib identifier for the whitelist / blacklist fib |
| 43 | @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration |
| 44 | @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration |
| 45 | @param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it |
| 46 | */ |
| 47 | |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 48 | autoreply define cop_whitelist_enable_disable |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 49 | { |
Ole Troan | f916414 | 2020-09-15 11:37:16 +0200 | [diff] [blame] | 50 | option deprecated; |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 51 | u32 client_index; |
| 52 | u32 context; |
Jakub Grajciar | aa4438a | 2019-04-03 14:05:11 +0200 | [diff] [blame] | 53 | vl_api_interface_index_t sw_if_index; |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 54 | u32 fib_id; |
Jakub Grajciar | aa4438a | 2019-04-03 14:05:11 +0200 | [diff] [blame] | 55 | bool ip4; |
| 56 | bool ip6; |
| 57 | bool default_cop; |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 58 | }; |
| 59 | |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 60 | /** \brief get_node_graph - get a copy of the vpp node graph |
| 61 | including the current set of graph arcs. |
| 62 | |
| 63 | @param client_index - opaque cookie to identify the sender |
| 64 | @param context - sender context, to match reply w/ request |
| 65 | */ |
| 66 | |
| 67 | /* |
| 68 | * Local Variables: |
| 69 | * eval: (c-set-style "gnu") |
| 70 | * End: |
| 71 | */ |