Skip to content

Commit

Permalink
Merge pull request #15803 from LabNConsulting/chopps/add-missing-zif-…
Browse files Browse the repository at this point in the history
…type

yang: add missing `zif-gre` zebra interface type
  • Loading branch information
idryzhov authored Apr 20, 2024
2 parents 0ff8034 + 74fb405 commit 99a723e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yang/frr-zebra.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 4 additions & 0 deletions zebra/zebra_nb_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 99a723e

Please sign in to comment.