diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-09-25 12:14:50 -0400 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-25 18:51:42 +0000 | 
| commit | 691a63368f441102f48dcbdb3d2b578a75a05442 (patch) | |
| tree | 677579d44271063558747da5dc5ded1d217da827 | |
| parent | 448b9b2a7e53fe28c541dc9fbafcbd8718ecd09d (diff) | |
zebra: Add missing proto translations
Add missing isis and eigrp proto translations.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit f53dde0e5921aafae0a00d993257ea7423b5ee97)
| -rw-r--r-- | zebra/zebra_snmp.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_snmp.c b/zebra/zebra_snmp.c index c9f27e70f8..a87f1bbbf7 100644 --- a/zebra/zebra_snmp.c +++ b/zebra/zebra_snmp.c @@ -227,6 +227,8 @@ static int proto_trans(int type)  		return 3; /* static route */  	case ZEBRA_ROUTE_RIP:  		return 8; /* rip */ +	case ZEBRA_ROUTE_ISIS: +		return 9;  	case ZEBRA_ROUTE_RIPNG:  		return 1; /* shouldn't happen */  	case ZEBRA_ROUTE_OSPF: @@ -235,6 +237,8 @@ static int proto_trans(int type)  		return 1; /* shouldn't happen */  	case ZEBRA_ROUTE_BGP:  		return 14; /* bgp */ +	case ZEBRA_ROUTE_EIGRP: +		return 16;  	default:  		return 1; /* other */  	}  | 
