Skip to content

Commit

Permalink
fix port-security, address parameters should be merged into one
Browse files Browse the repository at this point in the history
  • Loading branch information
fanriming committed Aug 17, 2021
1 parent f25b1ae commit f12e5ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ func (c Client) CreatePort(ls, port, ip, cidr, mac, tag, pod, namespace string,

if portSecurity {
ovnCommand = append(ovnCommand,
"--", "lsp-set-port-security", port, mac, ip)
"--", "lsp-set-port-security", port, fmt.Sprintf("%s %s", mac, ip))

if securityGroups != "" {
sgList := strings.Split(securityGroups, ",")
ovnCommand = append(ovnCommand,
Expand Down

0 comments on commit f12e5ee

Please sign in to comment.