diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-22 17:12:13 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-06 13:22:43 -0400 |
| commit | 1c33fb1dbbaacd33fddea93a60eda539b8c53dc4 (patch) | |
| tree | 9a1f9c1827747201cc7f80b3412794d4972fcd4d /pbrd/pbr_vty.c | |
| parent | b8eb036fb289df03190f0a88dbee2431d21c0d55 (diff) | |
pbrd: Prevent crash from partially configured interface
If an interface is in the process of coming up or
partially deconfigured, prevent pbrd from crashing
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_vty.c')
| -rw-r--r-- | pbrd/pbr_vty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index c8c3ed3302..02902fd009 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -494,6 +494,9 @@ DEFPY (show_pbr_interface, FOR_ALL_INTERFACES(vrf, ifp) { struct pbr_map *pbrm; + if (!ifp->info) + continue; + if (name && strcmp(ifp->name, name) != 0) continue; |
