mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
we dont need an error_exit twice when validating netconf
This commit is contained in:
@@ -560,7 +560,7 @@ add_vlan() {
|
||||
|
||||
case "${ACTION}" in
|
||||
add)
|
||||
validate_netconf || error_exit "[ERROR]: Failed to validate Bastille network configuration."
|
||||
validate_netconf
|
||||
validate_netif "${INTERFACE}"
|
||||
if check_interface_added "${TARGET}" "${INTERFACE}" && [ -z "${VLAN_ID}" ]; then
|
||||
error_exit "Interface is already added: \"${INTERFACE}\""
|
||||
|
||||
Reference in New Issue
Block a user