Merge pull request #15803 from LabNConsulting/chopps/add-missing-zif-type

yang: add missing `zif-gre` zebra interface type
This commit is contained in:
Igor Ryzhov 2024-04-20 21:25:28 +03:00 committed by GitHub
commit 99a723e5a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -151,6 +151,12 @@ module frr-zebra {
"Zebra interface type macvlan.";
}
identity zif-gre {
base zebra-interface-type;
description
"Zebra interface type gre.";
}
/*
* Multicast RPF mode configurable type
*/

View File

@ -55,6 +55,10 @@ lib_interface_zebra_state_zif_type_get_elem(struct nb_cb_get_elem_args *args)
zebra_if = ifp->info;
/*
* NOTE: when adding a new type to the switch, make sure it is defined
* in it's YANG model.
*/
switch (zebra_if->zif_type) {
case ZEBRA_IF_OTHER:
type = "frr-zebra:zif-other";