Skip to content

Commit

Permalink
network: remove ignore setup (#360)
Browse files Browse the repository at this point in the history
We no longer have a user (and don't expect have a new one) for the
ignore setup rule, so drop it.
  • Loading branch information
dorileo authored Feb 16, 2024
1 parent 854fee3 commit 54e3ff5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions google_guest_agent/network/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ type osConfigAction struct {
// enables/disables OS management of the provided nics.
// NOTE: This will eventually be moved to the specific network manager implementation.
nativeOSConfig func(ctx context.Context, nic []string) error

// ignoreSetup indicates whether to ignore the rest of the network management setup.
// This is used with nativeOSConfig to determine if, after running the function, the
// agent should continue with the rest of the setup.
ignoreSetup bool
}

const (
Expand Down Expand Up @@ -253,10 +248,6 @@ func SetupInterfaces(ctx context.Context, config *cfg.Sections, nics []metadata.
if err = osRule.action.nativeOSConfig(ctx, interfaces); err != nil {
return fmt.Errorf("failed to disable OS nic management: %v", err)
}
// Don't run setup.
if osRule.action.ignoreSetup {
return nil
}
}

// Get the network manager.
Expand Down

0 comments on commit 54e3ff5

Please sign in to comment.