Skip to content

Commit 1bc4cf1

Browse files
committed
use netmaster service name as default for netctl
this allows netctl commands to run from any where in cluster setup by contiv ansible. Also removed one unused variable Signed-off-by: Madhav Puri <[email protected]>
1 parent a20eacf commit 1bc4cf1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

netctl/netctl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
// DefaultMaster is the master to use when none is provided.
19-
const DefaultMaster = "http://localhost:9999"
19+
const DefaultMaster = "http://netmaster:9999"
2020

2121
func getClient(ctx *cli.Context) *contivClient.ContivClient {
2222
cl, err := contivClient.NewContivClient(ctx.GlobalString("netmaster"))

netmaster/master/consts.go

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ limitations under the License.
1616
package master
1717

1818
const (
19-
// DaemonURL is default url used by netmaster to listen for http requests
20-
DaemonURL = "localhost:9999"
21-
2219
//DesiredConfigRESTEndpoint is the REST endpoint to post desired configuration
2320
DesiredConfigRESTEndpoint = "desired-config"
2421
//AddConfigRESTEndpoint is the REST endpoint to post configuration additions

0 commit comments

Comments
 (0)