diff options
| author | Pat Ruddy <pat@voltanet.io> | 2020-09-18 10:12:08 +0100 |
|---|---|---|
| committer | Pat Ruddy <pat@voltanet.io> | 2021-02-02 09:37:04 +0000 |
| commit | 1e500ec09ff8c94fea6d5da76acd6bdbf56f0418 (patch) | |
| tree | 13d46f7000bdbebeaca2d1d2dac505132d0c4ced /lib/snmp.c | |
| parent | 8e0373314c7d42f674d47408e4ab71eb6cf48232 (diff) | |
bgpd: add utility to check if a vrf is active
From RFC4382:
A VRF is
up(1) when there is at least one interface associated
with the VRF whose ifOperStatus is up(1). A VRF is
down(2) when:
a. There does not exist at least one interface whose
ifOperStatus is up(1).
b. There are no interfaces associated with the VRF.
Run through interfaces associated with a vrf and return
true if there is one in the up state.
Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'lib/snmp.c')
0 files changed, 0 insertions, 0 deletions
