From df63161bafa18c05318e7a87fd6422b1095e1a5a Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Tue, 1 Oct 2019 18:09:01 +0200 Subject: [HICN-287] Adding hicn section to the startup.conf Checking if the size of the CS is greater than the number of vlib buffers available and size it accordingly. Removed unused parameters to set PIT lifetime Change-Id: I47679466542d4338e447d9e0b956038143164020 Signed-off-by: Alberto Compagno --- hicn-plugin/scripts/postinst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hicn-plugin/scripts/postinst (limited to 'hicn-plugin/scripts/postinst') diff --git a/hicn-plugin/scripts/postinst b/hicn-plugin/scripts/postinst new file mode 100644 index 000000000..012fc3571 --- /dev/null +++ b/hicn-plugin/scripts/postinst @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ -e /etc/vpp/startup.conf ]; then + if ! grep -q "hicn" /etc/vpp/startup.conf; then + printf '\n hicn { + ## Set PIT size. Default is 131 072 entries + # pit-size 500000 + # + ## Set CS size. Default is 4096 + # cs-size 50000 + # + ## Set maximum PIT entries lifetime in milliseconds. Assigned to a PIT entry in case an interest carries a bigger lifetime + # pit-lifetime-max 20 + # + ## Percentage of CS to reserve for application producer faces + # cs-reserved-app 20\n}' >> /etc/vpp/startup.conf + fi; +fi; \ No newline at end of file -- cgit 1.2.3-korg