diff options
author | Russ White <russ@riw.us> | 2021-09-21 17:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 17:36:53 +0200 |
commit | 2075387e77c06218eebcee597664f09c3724781e (patch) | |
tree | 0d0015c2c72193f336ab68f75d2244849c39d634 /bgpd/rfapi | |
parent | Merge pull request #9640 from opensourcerouting/ospf6d-filters (diff) | |
parent | bgpd: show SID structure information (diff) | |
download | frr-2075387e77c06218eebcee597664f09c3724781e.tar.xz frr-2075387e77c06218eebcee597664f09c3724781e.zip |
Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5
Add support for Prefix-SID (Type 5)
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r-- | bgpd/rfapi/rfapi_vty.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c index 45ef7230b..6762c2b4a 100644 --- a/bgpd/rfapi/rfapi_vty.c +++ b/bgpd/rfapi/rfapi_vty.c @@ -435,8 +435,16 @@ void rfapi_vty_out_vncinfo(struct vty *vty, const struct prefix *p, char buf[BUFSIZ]; vty_out(vty, " sid=%s", - inet_ntop(AF_INET6, &bpi->extra->sid[0], buf, - sizeof(buf))); + inet_ntop(AF_INET6, &bpi->extra->sid[0].sid, + buf, sizeof(buf))); + + if (bpi->extra->sid[0].loc_block_len != 0) { + vty_out(vty, " sid_structure=[%d,%d,%d,%d]", + bpi->extra->sid[0].loc_block_len, + bpi->extra->sid[0].loc_node_len, + bpi->extra->sid[0].func_len, + bpi->extra->sid[0].arg_len); + } } } |