Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewall policy causing failures in ACC - DO conversion - adding config for workaround #95

Open
samualblair opened this issue Jan 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@samualblair
Copy link

Environment

  • ACC Version: 3.10.0 (current VS Code implementation)
  • DO Version: 1.35.0
  • BIG-IP Version: 17.0.0.1

Summary

A clear and concise description of what the bug is.
Please also include information about the reproducibility and the severity/impact of the issue.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Convert following config:
security firewall policy /Common/Test {
    rules {
        block_ping {
            action drop
            ip-protocol icmp
            log yes
        }
    }
}
  1. Observe the following error message:
26 [2023-01-16T17:54:54.549Z] [ERROR]: f5.chariot.convertDO failed with [TypeError: Cannot read properties of undefined (reading 'addressLists')
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/lib/DO/doCustomMaps.js:131:36
	at Array.forEach (<anonymous>)
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/lib/DO/doCustomMaps.js:130:60
	at Array.forEach (<anonymous>)
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/lib/DO/doCustomMaps.js:129:37
	at Array.map (<anonymous>)
	at Object.customHandling (/Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/lib/DO/doCustomMaps.js:121:52)
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/engines/doConverter.js:210:64
	at Array.forEach (<anonymous>)
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/engines/doConverter.js:116:21
	at Array.forEach (<anonymous>)
	at module.exports (/Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/engines/doConverter.js:112:26)
	at mainRunner (/Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/main.js:42:22)
	at Object.mainAPI (/Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/node_modules/f5-automation-config-converter/src/main.js:136:30)
	at /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/out/extension.js:122:61
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async /Users/michaelj/.vscode/extensions/f5devcentral.vscode-f5-chariot-1.21.0/out/extension.js:113:20]

Expected Behavior

This (and others) taken from a running F5.
Expected behavior would be to be able to run a conversion and receive output.
Possibly using defaults or empty blocks that need to be filled in. Instead no conversion happens.

Actual Behavior

Conversion fails, no output is generated.

As a workaround it appears several fields need to be added for a conversion to not to completely fail.

For example this modified configuration does not fail (added description, source list and destination list).

security firewall address-list /Common/temp_source__fw_address_list_for_acc_conversion {
    addresses {
        1.1.1.1/32 { }
        1.1.1.2/32 { }
    }
}

security firewall address-list /Common/temp_dest_fw_address_list_for_acc_conversion {
    addresses {
        1.1.1.3/32 { }
        1.1.1.4/32 { }
    }
}
security firewall policy /Common/Test {
    rules {
        block_ping {
            action drop
            ip-protocol icmp
            log yes
            description "temp placeholder description"
            source {
                address-lists {
                    temp_source__fw_address_list_for_acc_conversion
                }
            }
            destination {
                address-lists {
                    temp_dest_fw_address_list_for_acc_conversion
                }
            }
        }
    }
}
@samualblair samualblair added the bug Something isn't working label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant