Skip to content

Commit

Permalink
Merge pull request #916 from bcreane/remove_bgp_env_vars
Browse files Browse the repository at this point in the history
Remove HOSTNAME and IP/IP6 env vars
  • Loading branch information
robbrockbank authored Jul 18, 2017
2 parents 6882a52 + a953324 commit f61eef2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions calico_node/startup/startup.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,6 @@ func waitForConnection(c *client.Client) {
func writeStartupEnv(nodeName string, ip, ip6 *net.IPNet) {
text := "export NODENAME=" + nodeName + "\n"

// TODO: See https://github.com/projectcalico/calico-bgp-daemon/issues/18
// The following entries are required for go-bgp. Once updated to use
// NODENAME and the node IP parameters, these entries can be removed.
text += "export HOSTNAME=" + nodeName + "\n"
if ip != nil {
text += "export IP=" + ip.IP.String() + "\n"
}
if ip6 != nil {
text += "export IP6=" + ip6.IP.String() + "\n"
}

// Write out the startup.env file to ensure required environments are
// set (which they might not otherwise be).
if err := ioutil.WriteFile("startup.env", []byte(text), 0666); err != nil {
Expand Down

0 comments on commit f61eef2

Please sign in to comment.