Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions netsim/devices/crpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ clab:
kind: juniper_crpd
config_templates:
hosts: /etc/hosts:shared
netlab-config: /config/netlab/config.sh:sh
netlab-config: /config/netlab/netlab-config.sh:sh
interface:
name: eth{ifindex+1}
features:
Expand All @@ -45,7 +45,7 @@ clab:
netlab_show_command: [ cli, -c, 'show $@' ]
netlab_check_command: who
netlab_ready: [ ssh ]
netlab_default_shebang: '#!/config/netlab/config.sh'
netlab_default_shebang: '#!/config/netlab/netlab-config.sh'
# ansible_connection: docker
# netlab_console_connection: docker
netlab_config_path: /config/netlab/
Expand Down
3 changes: 2 additions & 1 deletion netsim/templates/provider/clab/crpd/netlab-config.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
tail -n +2 $1 > /tmp/config.conf # stop shebang being included in pushed config
cat <<CONFIG | cli | tee /tmp/cli-status
configure
load merge $1
load merge /tmp/config.conf
CONFIG
if grep -i error /tmp/cli-status >/dev/null; then
echo "Configuration load failed, aborting"
Expand Down