summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-02-16 12:57:30 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-02-22 18:53:24 +0300
commit09b150ef2a20948947981fedcc86c82fcfa51a75 (patch)
tree8920894979b4987c94fe45fdc58ce5c0d8a6fe16 /lib/vrf.h
parent3fa607bebacd4881053414d641e8376b4e4f6e83 (diff)
lib: add definitions for vrf xpaths
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index 32e6fb4289..333d68ce96 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -52,6 +52,9 @@ enum { IFLA_VRF_UNSPEC, IFLA_VRF_TABLE, __IFLA_VRF_MAX };
#define VRF_ALL_CMD_HELP_STR "Specify the VRF\nAll VRFs\n"
#define VRF_FULL_CMD_HELP_STR "Specify the VRF\nThe VRF name\nAll VRFs\n"
+#define FRR_VRF_XPATH "/frr-vrf:lib/vrf"
+#define FRR_VRF_KEY_XPATH "/frr-vrf:lib/vrf[name='%s']"
+
/*
* Pass some OS specific data up through
* to the daemons