Commit Graph

13 Commits

Author SHA1 Message Date
Matt Churchyard
52a504e409 fix #382. change interface description to use delimiter not used in guest names 2021-01-05 09:47:58 +00:00
Michael Gmelin
355aa13ef7 Set interface name to vxlan switch name if name is short enough (<=12 chars)
when creating bridge interfaces, just like it's done for standard switches.
2020-02-13 18:45:33 +01:00
Matt Churchyard
a9030484a9 Fix #276 vxlan switch might not hae a user provided address 2019-02-08 14:20:21 +00:00
Matt Churchyard
af32248e59 Import new switch handling code 2018-06-28 08:59:01 +00:00
Matt Churchyard
5af359386e Use groups to make managing interfaces a bit cleaner/easier 2018-06-26 10:31:30 +00:00
Matt Churchyard
728fb8d603 Fix vlan device naming and check all calls to switch::standard::id
return id is always set so we need to check return status
2018-06-25 08:21:22 +00:00
Matt Churchyard
c67fc3758e Fix #223 - switch::standard::id failure
Test causes an error return value on successful ifconfig
2018-06-25 08:01:58 +00:00
Matt Churchyard
ec61996eac Remove the NAT commands other than the core command with a warning message
It's actually far easier and less error-prone to create a standard or manual
switch, then configure whichever NAT service the user wants to use manually.
2018-06-22 13:21:51 +00:00
Matt Churchyard
056b30d85e Rework switches to use the switch name as the actual bridge name
Makes identifying the correct interface easier and looks nicer in ifconfig
2018-06-22 11:54:20 +00:00
Mark Johnston
4c931a7e01 Fix exit status for many vm commands
The pattern "[ $? -ne 0 ] && util::err ..." is problematic since it
leaves an exit status of 1 if the test fails, which is the non-error
case. So various commands (e.g., vm datastore add) return status 1 even
when they succeed if this pattern appears as the last line of a command
implementation.

Fix this by mechanically converting this pattern to
"[ $? -eq 0 ] || util:err ...".
2018-02-06 17:39:30 -05:00
Matt Churchyard
d1515cd04f Add support for switch address/mtu/private
New options to 'vm switch create' to allow an ip and/or mtu to
be assigned to standard/vxlan switches. Also standard,vxlan &
custom switches can be set as private so no guest interfaces can
communicate.
2016-11-16 20:38:23 +00:00
Matt Churchyard
ac2cc9265c Add support for virtio_console devices 2016-11-11 15:50:13 +00:00
Matt Churchyard
d988e52d2d Rework switch support while getting some SDN on
We already had 3 types of switch (although you could only test vale manually),
with fairly ugly code to handle the differences. Now that a fourth has been added,
split each type into their own 'module'. This adds test vxlan support which can
create arbitrary virtual L2 networks by tunneling traffic over UDP L3.
2016-11-10 11:16:43 +00:00