diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-13 20:56:40 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | f828842a69edee4f43e7ef2a298fdb9f7fe48df4 (patch) | |
tree | e78713c4bb44d97abbdaf7f2d88b1c4c0db2b965 /vrrpd/vrrp.h | |
parent | vrrpd: remove ifindex from hash key computation (diff) | |
download | frr-f828842a69edee4f43e7ef2a298fdb9f7fe48df4.tar.xz frr-f828842a69edee4f43e7ef2a298fdb9f7fe48df4.zip |
vrrpd: add support for configuration writing
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r-- | vrrpd/vrrp.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h index ed68b6a81..eabb23fe7 100644 --- a/vrrpd/vrrp.h +++ b/vrrpd/vrrp.h @@ -30,6 +30,7 @@ #include "lib/privs.h" #include "lib/stream.h" #include "lib/thread.h" +#include "lib/vty.h" /* Global definitions */ #define VRRP_DEFAULT_ADVINT 100 @@ -559,6 +560,28 @@ int vrrp_autoconfig_if_address_del(struct interface *ifp); /* Other ------------------------------------------------------------------- */ /* + * Write interface block-level configuration to vty. + * + * vty + * vty to write config to + * + * Returns: + * # of lines written + */ +int vrrp_config_write_interface(struct vty *vty); + +/* + * Write global level configuration to vty. + * + * vty + * vty to write config to + * + * Returns: + * # of lines written + */ +int vrrp_config_write_global(struct vty *vty); + +/* * Find VRRP Virtual Router by Virtual Router ID */ struct vrrp_vrouter *vrrp_lookup(struct interface *ifp, uint8_t vrid); |