mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 09:16:17 +00:00
zebra: display interface slave type
interface slave type is displayed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
a237058f59
commit
d0738ba2bb
@ -1242,6 +1242,23 @@ static void nbr_connected_dump_vty(struct vty *vty,
|
|||||||
vty_out(vty, "\n");
|
vty_out(vty, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char *zebra_zifslavetype_2str(zebra_slave_iftype_t zif_slave_type)
|
||||||
|
{
|
||||||
|
switch (zif_slave_type) {
|
||||||
|
case ZEBRA_IF_SLAVE_BRIDGE:
|
||||||
|
return "Bridge";
|
||||||
|
case ZEBRA_IF_SLAVE_VRF:
|
||||||
|
return "Vrf";
|
||||||
|
case ZEBRA_IF_SLAVE_BOND:
|
||||||
|
return "Bond";
|
||||||
|
case ZEBRA_IF_SLAVE_OTHER:
|
||||||
|
return "Other";
|
||||||
|
case ZEBRA_IF_SLAVE_NONE:
|
||||||
|
return "None";
|
||||||
|
}
|
||||||
|
return "None";
|
||||||
|
}
|
||||||
|
|
||||||
static const char *zebra_ziftype_2str(zebra_iftype_t zif_type)
|
static const char *zebra_ziftype_2str(zebra_iftype_t zif_type)
|
||||||
{
|
{
|
||||||
switch (zif_type) {
|
switch (zif_type) {
|
||||||
@ -1469,6 +1486,9 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp)
|
|||||||
|
|
||||||
vty_out(vty, " Interface Type %s\n",
|
vty_out(vty, " Interface Type %s\n",
|
||||||
zebra_ziftype_2str(zebra_if->zif_type));
|
zebra_ziftype_2str(zebra_if->zif_type));
|
||||||
|
vty_out(vty, " Interface Slave Type %s\n",
|
||||||
|
zebra_zifslavetype_2str(zebra_if->zif_slave_type));
|
||||||
|
|
||||||
if (IS_ZEBRA_IF_BRIDGE(ifp)) {
|
if (IS_ZEBRA_IF_BRIDGE(ifp)) {
|
||||||
struct zebra_l2info_bridge *bridge_info;
|
struct zebra_l2info_bridge *bridge_info;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user