Commits

Kaspar Schiess committed 5c5a70f

Reintroduces the 'generate_mac' command

Comments (0)

Files changed (1)

lib/qemu-toolkit/vmadm.rb

         end
       end
 
+    subcommand('generate_mac', 
+      'Generates a random MAC address.') do
+        def _execute
+          puts random_mac_address
+        end
+      end
+
     def random_mac_address
       # Please see this discussion if improving this: 
       # http://stackoverflow.com/questions/8484877/mac-address-generator-in-python