Skip to content

Commit

Permalink
fix(vrouter): allow dhcp proto for router interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
glattercj authored and activeshadow committed Jul 25, 2024
1 parent 09d1f08 commit 0ed5e59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/app/vrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (this *Vrouter) PreStart(ctx context.Context, exp *types.Experiment) error
}

if strings.EqualFold(node.Hardware().OSType(), "linux") {
fmt.Printf(" === using OS Type 'linux' for Node Type %s is depricated ===\n", node.Type())
fmt.Printf(" === using OS Type 'linux' for Node Type %s is deprecated ===\n", node.Type())
fmt.Printf(" === use 'vyatta', 'vyos', or 'minirouter' OS type instead ===\n")
}

Expand Down
4 changes: 4 additions & 0 deletions src/go/tmpl/templates/vyatta.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
interfaces {
{{ range $idx, $iface := $node.Network.Interfaces }}
ethernet eth{{ $idx }} {
{{ if eq $iface.Proto "dhcp" }}
address dhcp
{{ else }}
address {{ $iface.Address }}/{{ $iface.Mask }}
{{ end }}
duplex auto
{{ if and (ge $iface.MTU 68) (le $iface.MTU 16000) }}
mtu {{ $iface.MTU }}
Expand Down

0 comments on commit 0ed5e59

Please sign in to comment.