cloudstack/scripts/network/juniper
Richard Lawley d70f574a7e plugins: fix removing SRX port forwarding rules, improve add/remove logic (#3393)
This PR partially fixes the logic around port forwarding rules on the Juniper SRX plugin. The code in the plugin is based on JunOS 10, which is very old. The changes here should not break compatibility, but should enable the plugin to be used on newer devices. Note that an additional change to a script file is required to be able to add port forwarding rules, but as this PR was targetted for 4.11.3, I thought it best not to include this change as it might break compatibility for anyone still using JunOS 10.

I've made the logic better and consistent for adding/removing static nat and port forwarding rules - these were multi-step processes which did not check each individual step. This would aid in manually fixing rules in case of further problems.

I've also improved the logging for communication with the SRX by stripping out the Apache header before sending it, and indicating the name of the template filename in use.

To be able to add port forwarding rules, the <dst-port> tags in dest-nat-rule-add.xml must be changed to <low>.

Fixes: #3379
2019-07-08 15:46:12 +05:30
..
access-profile-add.xml
access-profile-getall.xml
access-profile-getone.xml
address-book-entry-add.xml
address-book-entry-getall.xml
address-book-entry-getone.xml
address-pool-add.xml
address-pool-getall.xml
address-pool-getone.xml
application-add.xml CLOUDSTACK-779 Egress firewall rules support for Juniper SRX 2013-04-10 10:54:04 -07:00
application-getone.xml
close-configuration.xml
commit.xml
dest-nat-pool-add.xml
dest-nat-pool-getall.xml
dest-nat-pool-getone.xml
dest-nat-rule-add.xml plugins: fix removing SRX port forwarding rules, improve add/remove logic (#3393) 2019-07-08 15:46:12 +05:30
dest-nat-rule-getall.xml
dest-nat-rule-getone.xml
dynamic-vpn-client-add.xml
dynamic-vpn-client-getall.xml
dynamic-vpn-client-getone.xml
filter-getone.xml
filter-term-getone.xml
firewall-filter-bytes-getall.xml
firewall-filter-term-add.xml Fix license issue of new added xml files 2013-01-04 19:52:21 -08:00
firewall-filter-term-getone.xml Fix license issue of new added xml files 2013-01-04 19:52:21 -08:00
guest-vlan-filter-term-add.xml
ike-gateway-add.xml
ike-gateway-getall.xml
ike-gateway-getone.xml
ike-policy-add.xml
ike-policy-getall.xml
ike-policy-getone.xml
ipsec-vpn-add.xml
ipsec-vpn-getall.xml
ipsec-vpn-getone.xml
login.xml
open-configuration.xml
private-interface-add.xml
private-interface-getall.xml
private-interface-getone.xml
private-interface-with-filters-add.xml
proxy-arp-add.xml
proxy-arp-getall.xml
proxy-arp-getone.xml
public-ip-filter-term-add.xml
rollback.xml
security-policy-add.xml CLOUDSTACK-1578 SRX: Egress default policy configurable using network offering on SRX firewall 2013-06-24 13:37:01 +05:30
security-policy-getall.xml
security-policy-getone.xml
security-policy-group.xml
security-policy-rename.xml
src-nat-pool-add.xml
src-nat-pool-getone.xml
src-nat-rule-add.xml
src-nat-rule-getall.xml
src-nat-rule-getone.xml
static-nat-rule-add.xml
static-nat-rule-getall.xml
static-nat-rule-getone.xml
template-entry.xml The other xml license fix 2013-01-04 20:03:16 -08:00
test.xml
zone-interface-add.xml
zone-interface-getone.xml