"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "neutron/agent/l3/router_info.py" between
neutron-14.0.2.tar.gz and neutron-14.0.3.tar.gz

About: OpenStack Neutron (Core Service: Networking) enables network connectivity as a service for other OpenStack services, such as OpenStack Compute. Provides an API for users to define networks and the attachments into them. Has a pluggable architecture that supports many popular networking vendors and technologies.
The "Stein" series (maintained release).

router_info.py  (neutron-14.0.2):router_info.py  (neutron-14.0.3)
skipping to change at line 848 skipping to change at line 848
self.gateway_redirect_cleanup(interface_name) self.gateway_redirect_cleanup(interface_name)
self._delete_stale_external_devices(interface_name) self._delete_stale_external_devices(interface_name)
# Process SNAT rules for external gateway # Process SNAT rules for external gateway
gw_port = self._router.get('gw_port') gw_port = self._router.get('gw_port')
self._handle_router_snat_rules(gw_port, interface_name) self._handle_router_snat_rules(gw_port, interface_name)
def _prevent_snat_for_internal_traffic_rule(self, interface_name): def _prevent_snat_for_internal_traffic_rule(self, interface_name):
return ( return (
'POSTROUTING', '! -i %(interface_name)s ' 'POSTROUTING', '! -o %(interface_name)s -m conntrack '
'! -o %(interface_name)s -m conntrack ! ' '! --ctstate DNAT -j ACCEPT' %
'--ctstate DNAT -j ACCEPT' %
{'interface_name': interface_name}) {'interface_name': interface_name})
def external_gateway_nat_fip_rules(self, ex_gw_ip, interface_name): def external_gateway_nat_fip_rules(self, ex_gw_ip, interface_name):
dont_snat_traffic_to_internal_ports_if_not_to_floating_ip = ( dont_snat_traffic_to_internal_ports_if_not_to_floating_ip = (
self._prevent_snat_for_internal_traffic_rule(interface_name)) self._prevent_snat_for_internal_traffic_rule(interface_name))
# Makes replies come back through the router to reverse DNAT # Makes replies come back through the router to reverse DNAT
ext_in_mark = self.agent_conf.external_ingress_mark ext_in_mark = self.agent_conf.external_ingress_mark
to_source = ('-m mark ! --mark %s/%s ' to_source = ('-m mark ! --mark %s/%s '
'-m conntrack --ctstate DNAT ' '-m conntrack --ctstate DNAT '
'-j SNAT --to-source %s' '-j SNAT --to-source %s'
 End of changes. 1 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)