Skip to content

Commit

Permalink
agent: add rpf to rpf table tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hedibouattour committed Dec 7, 2023
1 parent 40f4b2e commit 4a0e65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calico-vpp-agent/cni/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func TruncateStr(text string, size int) string {

func (ps *LocalPodSpec) GetVrfTag(ipFamily vpplink.IpFamily, custom string) string {
h := hash(fmt.Sprintf("%s%s%s%s", ipFamily.ShortStr, ps.NetnsName, ps.InterfaceName, custom))
s := fmt.Sprintf("%s-%s-%s-%s", h, ipFamily.ShortStr, ps.InterfaceName, filepath.Base(ps.NetnsName))
s := fmt.Sprintf("%s-%s-%s-%s-%s", h, ipFamily.ShortStr, ps.InterfaceName, filepath.Base(ps.NetnsName), custom)
return TruncateStr(s, MaxApiTagLen)
}

Expand Down

0 comments on commit 4a0e65a

Please sign in to comment.