diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-01 09:09:51 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-01 09:09:51 -0800 |
| commit | 216b18efe144b07087050cb4dee4a15e4d747b05 (patch) | |
| tree | 88e8b23039fdab4286225e5d35a96cdcb49699a4 /zebra/test_main.c | |
| parent | 90fb3e1389d6347de55db787521c353d3d5e2547 (diff) | |
lib, zebra: Abstract vrf.c to handle both vrf_id_t and char *name
Abstract vrf.c code to allow pass in a vrf name as well as to
start the coding of how namespaces and vrf's will interact.
Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/test_main.c')
| -rw-r--r-- | zebra/test_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/test_main.c b/zebra/test_main.c index 027d2a1580..fea673694d 100644 --- a/zebra/test_main.c +++ b/zebra/test_main.c @@ -204,7 +204,7 @@ struct quagga_signal_t zebra_signals[] = /* Callback upon creating a new VRF. */ static int -zebra_vrf_new (vrf_id_t vrf_id, void **info) +zebra_vrf_new (vrf_id_t vrf_id, const char *name, void **info) { struct zebra_vrf *zvrf = *info; @@ -219,7 +219,7 @@ zebra_vrf_new (vrf_id_t vrf_id, void **info) /* Callback upon enabling a VRF. */ static int -zebra_vrf_enable (vrf_id_t vrf_id, void **info) +zebra_vrf_enable (vrf_id_t vrf_id, const char *name, void **info) { struct zebra_vrf *zvrf = (struct zebra_vrf *) (*info); @@ -233,7 +233,7 @@ zebra_vrf_enable (vrf_id_t vrf_id, void **info) /* Callback upon disabling a VRF. */ static int -zebra_vrf_disable (vrf_id_t vrf_id, void **info) +zebra_vrf_disable (vrf_id_t vrf_id, const char *name, void **info) { struct zebra_vrf *zvrf = (struct zebra_vrf *) (*info); struct listnode *list_node; |
