diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-22 21:34:35 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:28:39 +0200 |
| commit | a6db1c14a434a2f2e389de2ef871ed4a3d10d30a (patch) | |
| tree | 0faa319a72b7b505973976fabc9aafc679c8f20d /lib/yang_wrappers.c | |
| parent | be712fc697a6b03af5f1b8c48234eb162703e925 (diff) | |
zebra: convert interface evpn mh es-id commands to NB
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/yang_wrappers.c')
| -rw-r--r-- | lib/yang_wrappers.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/yang_wrappers.c b/lib/yang_wrappers.c index 237913880a..a0133954c3 100644 --- a/lib/yang_wrappers.c +++ b/lib/yang_wrappers.c @@ -1019,6 +1019,13 @@ void yang_str2mac(const char *value, struct ethaddr *mac) (void)prefix_str2mac(value, mac); } +void yang_dnode_get_mac(struct ethaddr *mac, const struct lyd_node *dnode, + const char *xpath_fmt, ...) +{ + const char *canon = YANG_DNODE_XPATH_GET_CANON(dnode, xpath_fmt); + (void)prefix_str2mac(canon, mac); +} + struct yang_data *yang_data_new_date_and_time(const char *xpath, time_t time) { struct tm tm; |
