Skip to content

Commit

Permalink
fix(vyatta): check for correct interface proto name for OSPF
Browse files Browse the repository at this point in the history
  • Loading branch information
activeshadow committed Jan 15, 2024
1 parent 7f4effc commit a771588
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/go/tmpl/templates/vyatta.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ interfaces {
{{ if and (ge $iface.MTU 68) (le $iface.MTU 16000) }}
mtu {{ $iface.MTU }}
{{ end }}
{{ if eq $iface.Proto "OSPF" }}
{{ if eq $iface.Proto "ospf" }}
ip {
ospf {
{{ if $node.Network.OSPF.DeadInterval }}
dead-interval {{ $node.Network.OSPF.DeadInterval }}
{{ end }}
{{ if $node.Network.OSPF.HelloInterval }}
hello-interval {{ $node.Network.OSPF.HelloInterval }}
{{ end }}
{{ if $node.Network.OSPF.RetransmissionInterval }}
retransmit-interval {{ $node.Network.OSPF.RetransmissionInterval }}
{{ end }}
transmit-delay 1
}
}
Expand Down

0 comments on commit a771588

Please sign in to comment.