From 340b10a38ed84600ed3336657ef3a104d9ebe877 Mon Sep 17 00:00:00 2001 From: zstas Date: Sat, 9 May 2020 16:57:23 +0000 Subject: pppoe: make pppoe plugin work with dot1q subinterfaces - Enabling arc "device-input" with the next node "pppoe-input" on the pppoe cp interface: to get rid of L3_MAC_MISMATCH error - Parsing in the "pppoe-input" node fixed to parse all headers from the scratch - Getting mac address directly from encap interface when filling up DPO adjacency. Anyway, in the case of the dot1q subinterface, we need to get vlan tags to fill the DPO adjacency. Type: improvement Change-Id: I5405931b0f58bef7b852c079a7e66e0da8b5de0f Signed-off-by: Stanislav Zaikin --- src/plugins/pppoe/pppoe.api | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/plugins/pppoe/pppoe.api') diff --git a/src/plugins/pppoe/pppoe.api b/src/plugins/pppoe/pppoe.api index fcbbf8a2f97..01f4ba4375d 100644 --- a/src/plugins/pppoe/pppoe.api +++ b/src/plugins/pppoe/pppoe.api @@ -86,6 +86,30 @@ define pppoe_session_details vl_api_mac_address_t client_mac; }; +/** \brief Create PPPOE control plane interface + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param sw_if_index - software index of the interface + @param is_add - to create or to delete +*/ +define pppoe_add_del_cp +{ + u32 client_index; + u32 context; + vl_api_interface_index_t sw_if_index; + u8 is_add; + option vat_help = "[ sw_if_index is_add ]"; +}; + +/** \brief reply for create PPPOE control plane interface + @param retval - return code +*/ +define pppoe_add_del_cp_reply +{ + u32 context; + i32 retval; +}; + /* * Local Variables: * eval: (c-set-style "gnu") -- cgit 1.2.3-korg