Skip to content

Commit b2ac9ec

Browse files
committed
Fix end and end-x install fail
Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
1 parent a67ca3c commit b2ac9ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

zebra/zebra_srv6.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ void zebra_srv6_local_sid_add(struct srv6_locator *locator, struct seg6_sid *sid
488488
strncpy(ctx.ifname,sid->ifname,INTERFACE_NAMSIZ);
489489
if(sid->nexthop.ipa_type==IPADDR_V4)
490490
{
491-
ctx.nh4 = sid->nexthop.ipaddr_v4;
491+
ctx.nh4 = sid->nexthop.ipaddr_v4;
492+
act = ZEBRA_SEG6_LOCAL_ACTION_END_DX4;
492493
}
493494
else if(sid->nexthop.ipa_type == IPADDR_V6)
494495
{

zebra/zebra_srv6_vty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ DEFPY (locator_prefix,
574574
struct listnode *node = NULL;
575575
enum seg6local_action_t sidaction = ZEBRA_SEG6_LOCAL_ACTION_UNSPEC;
576576
int idx = 0;
577-
char *vrfName = NULL;
577+
char *vrfName = VRF_DEFAULT_NAME;
578578
char *prefix = NULL;
579579
int ret = 0;
580580
struct prefix_ipv6 ipv6prefix = {0};

0 commit comments

Comments
 (0)