Skip to content

Commit

Permalink
silk-daemon job accepts vxlan_interface argument
Browse files Browse the repository at this point in the history
[#155197416]

Signed-off-by: Tyler Schultz <[email protected]>
  • Loading branch information
joachimvaldez authored and tylerschultz committed Feb 27, 2018
1 parent 1d280ad commit 9c9e6e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions jobs/silk-daemon/spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ properties:
silk_controller.listen_port:
description: "Silk controller handles requests from the silk daemon on this port."
default: 4103

vxlan_interface:
description: "Name of network interface which container traffic is sent to. If empty, the default network interface is used."
5 changes: 1 addition & 4 deletions jobs/silk-daemon/templates/client-config.json.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<%=
require 'json'

def param_exists? param
p(param) != ""
end

def subnet_prefix_length
size = link("cf_network").p("subnet_prefix_length")
if size < 1 || size > 30
Expand Down Expand Up @@ -38,6 +34,7 @@
"metron_port" => p("metron_port"),
"vtep_port" => p("vtep_port"),
"log_prefix" => "cfnetworking",
"custom_underlay_interface_name" => p("vxlan_interface", ""),
}

JSON.pretty_generate(toRender)
Expand Down

0 comments on commit 9c9e6e8

Please sign in to comment.