mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 19:10:35 +00:00
Merge pull request #15803 from LabNConsulting/chopps/add-missing-zif-type
yang: add missing `zif-gre` zebra interface type
This commit is contained in:
commit
99a723e5a8
@ -151,6 +151,12 @@ module frr-zebra {
|
|||||||
"Zebra interface type macvlan.";
|
"Zebra interface type macvlan.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
identity zif-gre {
|
||||||
|
base zebra-interface-type;
|
||||||
|
description
|
||||||
|
"Zebra interface type gre.";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Multicast RPF mode configurable type
|
* Multicast RPF mode configurable type
|
||||||
*/
|
*/
|
||||||
|
@ -55,6 +55,10 @@ lib_interface_zebra_state_zif_type_get_elem(struct nb_cb_get_elem_args *args)
|
|||||||
|
|
||||||
zebra_if = ifp->info;
|
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) {
|
switch (zebra_if->zif_type) {
|
||||||
case ZEBRA_IF_OTHER:
|
case ZEBRA_IF_OTHER:
|
||||||
type = "frr-zebra:zif-other";
|
type = "frr-zebra:zif-other";
|
||||||
|
Loading…
Reference in New Issue
Block a user