bsdci / libioc

A Python library to manage jails with ioc{age,ell}
https://bsd.ci/libioc
Other
38 stars 11 forks source link

get unprefixed BridgeInterface name by accessing the name attribute #603

Closed gronke closed 5 years ago

gronke commented 5 years ago

Fixes a bug starting jails with a Secure VNET bridge.

Because the string of a Secure VNET bridge is prefixed with a :, the name validation has failed and resulted in ioc.errors.VnetBridgeDoesNotExist:

root@hbsd:/usr/local/src/ioc # ioc set vnet=on interfaces="vnet0::bridge0" myjail
Jail 'myjail' updated: interfaces
root@hbsd:/usr/local/src/ioc # ioc start myjail
[+] JailResolverConfig@myjail: OK [0.002s]
[+] JailDependantsStart@myjail: No dependant jails [0.0s]
VNET bridge :bridge0 does not exist