-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathrestconf-enable.tmpl
77 lines (77 loc) · 2.07 KB
/
restconf-enable.tmpl
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<config>
<ip xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-tcp-cfg">
<cinetd>
<services>
<vrfs>
<vrf>
<vrf-name>default</vrf-name>
<ipv4>
<telnet>
<tcp>
<maximum-server>35</maximum-server>
</tcp>
</telnet>
</ipv4>
</vrf>
</vrfs>
</services>
</cinetd>
</ip>
<interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
<interface-configuration>
<active>act</active>
<interface-name>Loopback2</interface-name>
<interface-virtual/>
<ipv4-network xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg">
<addresses>
<primary>
<address>128.0.0.1</address>
<netmask>255.0.0.0</netmask>
</primary>
</addresses>
</ipv4-network>
<shutdown nc:operation="remove"/>
</interface-configuration>
</interface-configurations>
<restconf xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-man-restconf-cfg">
<agent>
<enable/>
</agent>
</restconf>
<web xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-man-http-lighttpd-yang-cfg">
<server>
<service>
<restconf>
<enable/>
<http-port>{{RC_HTTP_PORT}}</http-port>
<https-port>{{RC_HTTPS_PORT}}</https-port>
<http-enable/>
</restconf>
</service>
</server>
</web>
<router-static xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-static-cfg">
<default-vrf>
<address-family>
<vrfipv4>
<vrf-unicast>
<vrf-prefixes>
<vrf-prefix>
<prefix>0.0.0.0</prefix>
<prefix-length>0</prefix-length>
<vrf-route>
<vrf-next-hop-table>
<vrf-next-hop-interface-name-next-hop-address>
<interface-name>MgmtEth0/RP0/CPU0/0</interface-name>
<next-hop-address>{{BRIDGE_IP}}</next-hop-address>
</vrf-next-hop-interface-name-next-hop-address>
</vrf-next-hop-table>
</vrf-route>
</vrf-prefix>
</vrf-prefixes>
</vrf-unicast>
</vrfipv4>
</address-family>
</default-vrf>
</router-static>
</config>