{{define "configure-routes.html"}}
{{template "base" .}}
{{end}}
{{define "content"}}
{{if .Loading}}
Downloading YANG schema from device… this takes a moment on first login.
{{template "configure-toolbar" .}}
{{else}}
{{$d := .Desc}}
{{if .Error}}
{{.Error}}
{{end}}
| Destination{{template "field-info" (index $d "prefix")}} |
Next Hop{{template "field-info" (index $d "nexthop")}} |
Interface{{template "field-info" (index $d "interface")}} |
|
{{range $i, $rt := .IPv4Routes}}
|
|
{{.NextHop}} |
{{.Interface}} |
|
|
|
{{end}}
{{if not .IPv4Routes}}
| No IPv4 static routes |
{{end}}
{{/* Hidden add row */}}
|
|
| Destination{{template "field-info" (index $d "prefix")}} |
Next Hop{{template "field-info" (index $d "nexthop")}} |
Interface{{template "field-info" (index $d "interface")}} |
|
{{range $i, $rt := .IPv6Routes}}
|
|
{{.NextHop}} |
{{.Interface}} |
|
|
|
{{end}}
{{if not .IPv6Routes}}
| No IPv6 static routes |
{{end}}
{{/* Hidden add row */}}
|
|
{{template "configure-toolbar" .}}
{{end}}{{/* end {{else}} — schema ready */}}
{{end}}