summaryrefslogtreecommitdiff
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-14 21:46:44 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-04-15 08:42:03 -0400
commit2fcc254eed8931c1fb6041abc824f46efb4a65cc (patch)
tree01fe38bdba96d95afa20ecf1aeda905918f2be18 /lib/zclient.h
parent33e450331eb2060dc315915e13949ad2f0960114 (diff)
lib, bgpd: Refactor vrf handling through zclient
Protocols receive zclient vrf creation events from zebra. This data was being handed to the protocol to decode and then to hand back to zclient to create the vrf to then handle appropriately. This is a bad idea. Modify the code such that when zclient.c receives a vrf event from zebra that it decodes the data and just creates the vrf. Individual protocols just need to handle the appropriate vrf events. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index 49f73b3e9b..d411965217 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -87,8 +87,6 @@ struct zclient
/* Pointer to the callback functions. */
void (*zebra_connected) (struct zclient *);
int (*router_id_update) (int, struct zclient *, uint16_t, vrf_id_t);
- int (*vrf_add) (int, struct zclient *, uint16_t, vrf_id_t);
- int (*vrf_delete) (int, struct zclient *, uint16_t, vrf_id_t);
int (*interface_add) (int, struct zclient *, uint16_t, vrf_id_t);
int (*interface_delete) (int, struct zclient *, uint16_t, vrf_id_t);
int (*interface_up) (int, struct zclient *, uint16_t, vrf_id_t);
@@ -195,8 +193,6 @@ extern int zclient_send_message(struct zclient *);
/* create header for command, length to be filled in by user later */
extern void zclient_create_header (struct stream *, uint16_t, vrf_id_t);
-extern struct vrf *zebra_vrf_add_read (struct stream *, vrf_id_t);
-extern struct vrf *zebra_vrf_state_read (struct stream *s, vrf_id_t);
extern struct interface *zebra_interface_add_read (struct stream *, vrf_id_t);
extern struct interface *zebra_interface_state_read (struct stream *s, vrf_id_t);
extern struct connected *zebra_interface_address_read (int, struct stream *, vrf_id_t);