we dont need an error_exit twice when validating netconf

This commit is contained in:
tschettervictor
2025-04-26 15:01:56 -06:00
parent 209d800cbb
commit fa4ffa340f
4 changed files with 6 additions and 6 deletions

View File

@@ -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}\""