Skip to content

Commit

Permalink
Hotfix for bug in cedge ISO generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonking3 committed May 14, 2020
1 parent 32ef053 commit 702f223
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions vmware/cloud-init/cedge/ciscosdwan_cloud_init.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
%{ if day0 != "" }${day0}%{ else }
Content-Type: multipart/mixed; boundary="===============3067523750048488884=="
%{ if day0 != "" }${day0}%{ else }Content-Type: multipart/mixed; boundary="===============3067523750048488884=="
MIME-Version: 1.0

--===============3067523750048488884==
Expand All @@ -14,6 +13,7 @@ vinitparam:
%{ if vbond != "" }- vbond : ${vbond}%{ else }- vbond : 1.1.1.1%{ endif }
%{ if uuid != "" }- uuid : ${uuid}%{ else }- uuid : none%{ endif }
%{ if org != "" }- org : ${org}%{ else }- org : none%{ endif }
- rcc : false

--===============3067523750048488884==
Content-Type: text/cloud-boothook; charset="us-ascii"
Expand All @@ -22,29 +22,15 @@ Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="config-CSR-725caea2-41a4-497c-821d-a2e280be40a0.txt"

#cloud-boothook

hostname
hostname Router
username admin privilege 15 secret 0 admin
logging persistent immediate filesize 8192 size 1000000
aaa authentication login default local
aaa authorization exec default local none
interface GigabitEthernet1
%{ if ipv4_address != "dhcp" }ip address ${ipv4_address}%{ else }ip address dhcp%{ endif }
no shutdown
%{ if ipv4_address != "dhcp" }ip address ${ipv4_address}%{ else }ip address dhcp client-id GigabitEthernet1%{ endif }
exit
%{ if ipv4_gateway != "" }ip route 0.0.0.0 0.0.0.0 ${ipv4_gateway}%{ else }!%{ endif }
username admin privilege 15 secret 0 admin
service password-encryption
crypto key generate rsa label ssh-key modulus 2048
ip ssh version 2
ip ssh rsa keypair-name ssh-key
ip tcp window-size 8192
ip ssh window-size 8192
line vty 0 20
transport input ssh
exit
ip domain
ip scp server enable
line bty 0 4
login local
transport input ssh
%{ endif }
%{ endif }
--===============3067523750048488884==

0 comments on commit 702f223

Please sign in to comment.