If you want a one-minute manager solution, use the “exec” command in 
/etc/vpp/vpp-startup.conf to source as many files as you like. 

 

Here’s one way to exploit that scheme:

 

define HOSTNAME myvppgateway

define TRUNK GigabitEthernet3/0/0

 

comment { inside subnet 192.168.<inside_subnet>.0/24 }

define INSIDE_SUBNET 2

 

define INSIDE_PORT1 GigabitEthernet6/0/0

define INSIDE_PORT2 GigabitEthernet6/0/1

define INSIDE_PORT3 GigabitEthernet8/0/0

define INSIDE_PORT4 GigabitEthernet8/0/1

 

comment { feature selections }

define FEATURE_NAT44 comment

define FEATURE_CNAT uncomment

define FEATURE_DNS comment

define FEATURE_IP6 comment

define FEATURE_IKE_RESPONDER comment

define FEATURE_MACTIME uncomment

 

exec /etc/vpp/setup.tmpl

 

where setup.tmpl might use the macro definitions like so:

 

$(FEATURE_NAT44) { $(FEATURE_IKE_RESPONDER) { nat44 add identity mapping 
external $(TRUNK) udp 500 } }

$(FEATURE_NAT44) { $(FEATURE_IKE_RESPONDER) { nat44 add identity mapping 
external $(TRUNK) udp 4500 } }

 

 

D.

 

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of 
ashish.sax...@hsc.com
Sent: Sunday, November 29, 2020 11:05 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] support of multiple startup-config files in startup.conf

 

Hi All,

To read startup operational configuration of vpp from a file, we modify the 
/etc/vpp/startup.conf file as:

unix {

  nodaemon

  log /var/log/vpp/vpp.log

  full-coredump

  cli-listen /run/vpp/cli.sock

  startup-config /etc/vpp/vpp-startup.config

  gid vpp

}

Can we provide 2 filenames here instead of one so that 2 startup-config files 
will get create.

Thanks ,
Ashish 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18201): https://lists.fd.io/g/vpp-dev/message/18201
Mute This Topic: https://lists.fd.io/mt/78601194/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to