-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvalues.cue
More file actions
61 lines (59 loc) · 1.2 KB
/
Copy pathvalues.cue
File metadata and controls
61 lines (59 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package main
import oc "yang.to.cue/pkg:yang"
config: oc.#Device & {
interfaces: interface: [{
config: {
description: "loopback interface"
mtu: 1500
name: "Loopback0"
}
name: "Loopback0"
subinterfaces: {
subinterface: [{
config: {
description: "default subinterface"
index: 0
}
index: 0
ipv4: {
addresses: {
address: [{
ip: "192.0.2.1"
config: {
"addr-type": oc.#AristaIntfAugments_AristaAddrType_PRIMARY
"prefix-length": 24
ip: "192.0.2.1"
}
}]
}
}
}]
}
}]
"network-instances": "network-instance": [{
config: name: "default"
name: "default"
protocols: protocol: [{
bgp: {
global: config: as: 65000
neighbors: neighbor: [{
"afi-safis": "afi-safi": [{
"afi-safi-name": oc.#OpenconfigBgpTypes_AFI_SAFI_TYPE_IPV4_UNICAST
config: "afi-safi-name": "IPV4_UNICAST"
}]
config: {
"neighbor-address": "169.254.0.1"
"peer-as": 65001
}
"neighbor-address": "169.254.0.1"
}]
}
config: {
identifier: "BGP"
name: "BGP"
}
identifier: "BGP"
name: "BGP"
}]
}]
}