Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
orchestrator: a new option for enabling/disabling orchestration initi…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
mitake committed Oct 27, 2016
1 parent 4c0fe66 commit 5f6a9fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions nmz/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (orc *Orchestrator) Start() {
orc.endpointEventCh, orc.controlCh = endpoint.StartAll(orc.endpointActionCh, orc.cfg)
orc.policyActionCh = orc.policy.ActionChan()
orc.dumbPolicyActionCh = orc.dumbPolicy.ActionChan()
orc.enabled = !orc.cfg.GetBool("skipInitOrchestrator")
go orc.eventRoutine()
go orc.actionRoutine()
go orc.controlRoutine()
Expand Down
4 changes: 4 additions & 0 deletions nmz/util/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func New() Config {
"ethernetNFQNumber": 42,
"procWatchInterval": time.Second,
})

// if skipInitOrchestrator is true, orchestrator is disabled at its initialization time
cfg.SetDefault("skipInitOrchestrator", false)

return cfg
}

Expand Down

0 comments on commit 5f6a9fa

Please sign in to comment.