Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Mar 4, 2024
1 parent 5a7b070 commit a255ada
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions nodes/cvsr/cvsr.go
Expand Up @@ -111,7 +111,7 @@ func (n *Cvsr) createCVSRFiles() error {

vsrConf := filepath.Join(n.Cfg.LabDir, "vsr.conf")
data := fmt.Sprintf(`mgmtIf=eth0
dpdk=0;0
dpdk=1;DPDK_DEVS
dpdkHugeDir=/dev/hugepages
cfDirs=/home/sros/flash1;/home/sros/flash2;/home/sros/flash3
logDir=/root/run/log
Expand Down Expand Up @@ -155,35 +155,35 @@ echo "executing entrypoint"
n.Cfg.Entrypoint = "/CustEntry.sh"

vsrCliConf := filepath.Join(n.Cfg.LabDir, "cf3", "config.cfg")
cliConfData := fmt.Sprint(`exit all
configure
system
dns
address-pref ipv6-first
exit
time
sntp
shutdown
exit
zone UTC
exit
cliConfData := `exit all
configure
system
dns
address-pref ipv6-first
exit
system
security
telnet-server
ftp-server
snmp
community private rwa version both
community public r version both
exit
time
sntp
shutdown
exit
zone UTC
exit
log
exit
system
security
telnet-server
ftp-server
snmp
community private rwa version both
community public r version both
exit
exit
card 1
card-type iom-v
`)
err = os.WriteFile(vsrCliConf, []byte(cliConfData), 0644)
exit
log
exit
card 1
card-type iom-v
`
err = os.WriteFile(vsrCliConf, []byte(cliConfData), 0666)
if err != nil {
return err
}
Expand Down

0 comments on commit a255ada

Please sign in to comment.