Verified Commit 555290bb authored by Wataru Noguchi's avatar Wataru Noguchi ✍🏻
Browse files

Add Cisco related snippets.

parent 4cfd73dd
......@@ -12,24 +12,108 @@
// ],
// "description": "Log output to console"
// }
"code": {
"prefix": "code",
"body": [
"<code>",
"$1",
"</code>"
]
},
"odered list": {
"prefix": "ol",
"body": [
" - $1"
]
},
"unnumberd list": {
"prefix": "ul",
"body": [
" * $1"
]
}
}
\ No newline at end of file
"code": {
"prefix": "code",
"body": [
"<code>",
"$1",
"</code>"
],
"description": ""
},
"odered list": {
"prefix": "ol",
"body": [
" - $1"
],
"description": ""
},
"unnumberd list": {
"prefix": "ul",
"body": [
" * $1"
],
"description": ""
},
"interface GigabitEthernet": {
"prefix": "int",
"body": [
"interface ${1:GigabitEthernet} ${2:0/0}",
" ip address ${3:10.1.2.1} ${4:255.255.255.0}",
" no shutdown"
],
"description": ""
},
"initial configuration": {
"prefix": "initconf",
"body": [
"enable",
"configure terminal",
"!",
"no service config",
"no ip domain-lookup",
"line console 0",
" no login",
" exec-timeout 0 0",
" logging synchronous",
" privilege level 15",
"exit",
"line vty 0 15",
" no login",
" privilege level 15",
" transport input all",
"exit",
"!",
"no enable password",
"no enable secret",
"hostname R"
],
"description": ""
},
"base configuration": {
"prefix": "baseconf",
"body": [
"++++ ${1:R}$2 |",
"",
" * ${1:R}$2",
"",
"<code>",
"configure terminal",
"!",
"interface GigabitEthernet ${3:0/0}",
" ip address ${4:10.1.1.$2} ${5:255.255.255.0}",
" no shutdown",
"!",
"ip route ${6:0.0.0.0} ${7:0.0.0.0} ${8:10.1.2.2}",
"!",
"router ${9:ospf 1}",
" network ${4:10.1.1.$2} ${10:0.0.0.0} ${11:area 0}",
"exit",
"!",
"end",
"</code>",
"",
"++++"
],
"description": ""
},
"configure terminal": {
"prefix": "conf t",
"body": [
"<code>",
"configure terminal",
"!",
"$1",
"!",
"end",
"</code>"
]
},
"logging console": {
"prefix": "logcon",
"body": [
"logging console"
],
"description": ""
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment