Skip to content

Commit

Permalink
modify func name Additonal to Additional
Browse files Browse the repository at this point in the history
  • Loading branch information
active-xu committed Jul 7, 2021
1 parent c490c1e commit a5b22a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/daemon/ovs.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ func configureContainerNic(nicName, ifName string, ipAddr, gateway string, macAd
}

if nicType == util.InternalType {
if err = addAdditonalNic(ifName); err != nil {
if err = addAdditionalNic(ifName); err != nil {
return err
}
if err = configureAdditonalNic(ifName, ipAddr); err != nil {
if err = configureAdditionalNic(ifName, ipAddr); err != nil {
return err
}
if err = configureNic(nicName, ipAddr, macAddr, mtu); err != nil {
Expand Down Expand Up @@ -747,7 +747,7 @@ func (csh cniServerHandler) configureNicWithInternalPort(podName, podNamespace,
}

// https://github.com/antrea-io/antrea/issues/1691
func configureAdditonalNic(link, ip string) error {
func configureAdditionalNic(link, ip string) error {
nodeLink, err := netlink.LinkByName(link)
if err != nil {
return fmt.Errorf("can not find nic %s %v", link, err)
Expand Down Expand Up @@ -796,7 +796,7 @@ func configureAdditonalNic(link, ip string) error {
return nil
}

func addAdditonalNic(ifName string) error {
func addAdditionalNic(ifName string) error {
dummy := &netlink.Dummy{
LinkAttrs: netlink.LinkAttrs{
Name: ifName,
Expand Down

0 comments on commit a5b22a2

Please sign in to comment.