diff --git a/src/go/app/vrouter.go b/src/go/app/vrouter.go index 6c421def..8f1965f3 100644 --- a/src/go/app/vrouter.go +++ b/src/go/app/vrouter.go @@ -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") } diff --git a/src/go/tmpl/templates/vyatta.tmpl b/src/go/tmpl/templates/vyatta.tmpl index 9b8d6a5a..ae8542c7 100644 --- a/src/go/tmpl/templates/vyatta.tmpl +++ b/src/go/tmpl/templates/vyatta.tmpl @@ -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 }}