diff --git a/app/network/views.py b/app/network/views.py
index 4f639defe7df0a41ecd9020b861c2cf0ec34c7c5..5edde9b4e774b3067a070c5522c8f6939ddb5bb4 100644
--- a/app/network/views.py
+++ b/app/network/views.py
@@ -126,7 +126,7 @@ def edit_host(name):
 @login_groups_accepted('admin', 'create')
 def create_interface(hostname):
     host = models.Host.query.filter_by(name=hostname).first_or_404()
-    random_mac = host.device_type.name.startsWith('Virtual')
+    random_mac = host.device_type.name.startswith('Virtual')
     form = InterfaceForm(request.form, host_id=host.id, interface_name=host.name,
                          random_mac=random_mac)
     if form.validate_on_submit():