summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-11-07 19:22:21 -0500
committerFeng Pan <fpan@redhat.com>2016-11-21 21:27:09 -0500
commit9326e4237f4d161f297dc4493ab4928ea6e2bf0f (patch)
tree25372fa964fe84b160c5bfc58304285902edbefc /templates
parentc70bea9fb9cd5dfb29d7ab8f7aaae7324c31f1e3 (diff)
Initial Commit.
Change-Id: I212ec4be42357edddd931e9e479e33131ccd4bac Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/honeycomb.json.erb41
-rw-r--r--templates/startup.conf.erb25
2 files changed, 66 insertions, 0 deletions
diff --git a/templates/honeycomb.json.erb b/templates/honeycomb.json.erb
new file mode 100644
index 0000000..6cf2bc3
--- /dev/null
+++ b/templates/honeycomb.json.erb
@@ -0,0 +1,41 @@
+ {
+ "persisted-context-path": "/var/lib/honeycomb/persist/context/data.json",
+ "persisted-context-restoration-type": "Merge",
+ "persisted-config-path": "/var/lib/honeycomb/persist/config/data.json",
+ "persisted-config-restoration-type": "Merge",
+
+ "notification-service-queue-depth": 1,
+
+ "restconf-http-enabled": "true",
+ "restconf-root-path": "/restconf",
+ "restconf-binding-address": "127.0.0.1",
+ "restconf-port": <%= scope.lookupvar('fdio::honeycomb::rest_port') %>,
+ "restconf-https-enabled": "true",
+ "restconf-https-binding-address": "0.0.0.0",
+ "restconf-https-port": 8443,
+ "restconf-keystore": "/honeycomb-keystore",
+ "restconf-keystore-password": "OBF:1v9s1unr1unn1vv51zlk1t331vg91x1b1vgl1t331zly1vu51uob1uo71v8u",
+ "restconf-keystore-manager-password": "OBF:1v9s1unr1unn1vv51zlk1t331vg91x1b1vgl1t331zly1vu51uob1uo71v8u",
+ "restconf-truststore": "/honeycomb-keystore",
+ "restconf-truststore-password": "OBF:1v9s1unr1unn1vv51zlk1t331vg91x1b1vgl1t331zly1vu51uob1uo71v8u",
+ "restconf-websocket-port": <%= scope.lookupvar('fdio::honeycomb::websocket_rest_port') %>,
+ "restconf-pool-max-size": 10,
+ "restconf-pool-min-size": 1,
+ "restconf-acceptors-size": 1,
+ "restconf-selectors-size": 1,
+ "restconf-https-acceptors-size": 1,
+ "restconf-https-selectors-size": 1,
+
+
+ "netconf-netty-threads": 2,
+ "netconf-tcp-enabled" : "true",
+ "netconf-tcp-binding-address": "127.0.0.1",
+ "netconf-tcp-binding-port": 7777,
+ "netconf-ssh-enabled" : "true",
+ "netconf-ssh-binding-address": "0.0.0.0",
+ "netconf-ssh-binding-port": 2831,
+ "netconf-notification-stream-name": "honeycomb",
+
+ "username": "<%= scope.lookupvar('fdio::honeycomb::user') %>",
+ "password": "<%= scope.lookupvar('fdio::honeycomb::password') %>"
+}
diff --git a/templates/startup.conf.erb b/templates/startup.conf.erb
new file mode 100644
index 0000000..e10dea4
--- /dev/null
+++ b/templates/startup.conf.erb
@@ -0,0 +1,25 @@
+unix {
+ nodaemon
+ log /tmp/vpp.log
+ full-coredump
+}
+
+dpdk {
+ <% if @vpp_dpdk_devs.is_a? Array -%><% @vpp_dpdk_devs.each do |n| -%>
+ dev <%=n-%> <% if @vpp_vlan_enabled && system("lspci -s #{n} | grep VIC") -%> {vlan-strip-offload off}<%end%>
+ <% end -%><% end -%>
+ uio-driver <%=@vpp_dpdk_uio_driver%>
+}
+
+cpu {
+ <% if @vpp_cpu_main_core -%>main-core <%=@vpp_cpu_main_core%> <%end%>
+ <% if @vpp_cpu_corelist_workers -%>corelist-workers <%=@vpp_cpu_corelist_workers%> <%end%>
+}
+
+api-trace {
+ on
+}
+
+api-segment {
+ gid vpp
+}