Add CLI for lcp-auto-subint

In preparation of another feature 'netlink-auto-subint', rename
lcp_main's field to "lcp_auto_subint".

Add CLI .short_help = "lcp lcp-auto-subint [on|enable|off|disable]"

Show status of the field on "lcp show" output.
This commit is contained in:
Pim van Pelt
2021-08-15 14:45:04 +02:00
parent c2adb3262d
commit d23aab2d95
6 changed files with 45 additions and 12 deletions

View File

@ -167,8 +167,8 @@ lcp_itf_pair_find_by_host (u32 host_sw_if_index)
/**
* sub-interface auto creation/deletion for LCP
*/
void lcp_set_auto_subint (u8 is_auto);
int lcp_auto_subint (void);
void lcp_set_lcp_auto_subint (u8 is_auto);
int lcp_lcp_auto_subint (void);
typedef void (*lcp_itf_pair_add_cb_t) (lcp_itf_pair_t *);
typedef void (*lcp_itf_pair_del_cb_t) (lcp_itf_pair_t *);