)]}'
{"dragonflow/controller/chassis_snat_app.py":[{"author":{"_account_id":26131,"name":"Eyal Leshem","email":"eyal.leshem@toganetworks.com","username":"leyal"},"change_message_id":"d8b7b77588fc2b3e33a48726bd6b2867dc55be57","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        else:"},{"line_number":68,"context_line":"            self.install_strategy_based_flows()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def _setup_patch_ports(self):"},{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f201791_1a4a39ab","line":70,"updated":"2017-06-25 11:23:31.000000000","message":"Isn\u0027t it the Same patch of the provider-app? \nCan it cause loop when SNAT and Provider-app running together?","commit_id":"78ac651abab93ec2a1ff5f433357fec4cd286151"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"37ed6c43ede0b1dab6c4102272a58d387417244c","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        else:"},{"line_number":68,"context_line":"            self.install_strategy_based_flows()"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def _setup_patch_ports(self):"},{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f201791_cee402e3","line":70,"in_reply_to":"5f201791_1a4a39ab","updated":"2017-06-25 14:37:00.000000000","message":"It\u0027s the same patch used by DNAT app (which I am trying to remove)\n\nThis should not cause a loop because [1] restricts provider app to classify only packets from its own patch.\n\nThis won\u0027t cause a loop because packets entering provider patch will get answered only if they are bound to a port,\nand on the other hand, packets on the SNAT patch will get answered only if they are bound for HOST_IP.\n\n(ARPs will arrive to both but answered only by relevant patch so the external bridge will learn the relevant patch port),\n\nAdditionally, it allows communication between SNAT and ports on external network.\n\n[1] https://review.openstack.org/#/c/476026","commit_id":"78ac651abab93ec2a1ff5f433357fec4cd286151"},{"author":{"_account_id":26131,"name":"Eyal Leshem","email":"eyal.leshem@toganetworks.com","username":"leyal"},"change_message_id":"9ad95917d7ea1c80fd72017f57c3171bf95b43e4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.external_ofport \u003d self.vswitch_api.create_patch_port("},{"line_number":76,"context_line":"            integration_bridge,"},{"line_number":77,"context_line":"            ex_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f1d235d_e8d37037","line":74,"updated":"2017-07-02 09:43:26.000000000","message":"Why need to create patch port - \nIs it possible to relay on the patches that created by the  provider app?","commit_id":"3087b33bba255a0279e8fb50e0dab01d225cca98"},{"author":{"_account_id":26131,"name":"Eyal Leshem","email":"eyal.leshem@toganetworks.com","username":"leyal"},"change_message_id":"ac7d074c264caf89822adc2c768237cad1f1e90d","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.external_ofport \u003d self.vswitch_api.create_patch_port("},{"line_number":76,"context_line":"            integration_bridge,"},{"line_number":77,"context_line":"            ex_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f1d235d_2eb971e8","line":74,"in_reply_to":"3f1d235d_2e12910a","updated":"2017-07-02 12:58:34.000000000","message":"If i understand it right  - currently there is 2 apps that use the br-ex  : SNAT , DNAT and provider. \nSo what is the different between the Dnat that rely on the provider-app patch port, and the SNAT that create separate patch-port..","commit_id":"3087b33bba255a0279e8fb50e0dab01d225cca98"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"bd421db5d1a4a0569d7e9acbb7e254afab0155a2","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.external_ofport \u003d self.vswitch_api.create_patch_port("},{"line_number":76,"context_line":"            integration_bridge,"},{"line_number":77,"context_line":"            ex_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f1d235d_ce21ddfd","line":74,"in_reply_to":"3f1d235d_2eb971e8","updated":"2017-07-03 08:41:58.000000000","message":"DNAT handles floating IPs which are bound to ports on the provider network, but SNAT, as we specified it, can use any valid host IP, either on the neutron external network or not.","commit_id":"3087b33bba255a0279e8fb50e0dab01d225cca98"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"2ab5b7324e263b8a573a2198634a1e60ec6fa7db","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        integration_bridge \u003d cfg.CONF.df.integration_bridge"},{"line_number":72,"context_line":"        ex_peer_patch_port \u003d cfg.CONF.df_snat_app.ex_peer_patch_port"},{"line_number":73,"context_line":"        int_peer_patch_port \u003d cfg.CONF.df_snat_app.int_peer_patch_port"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.external_ofport \u003d self.vswitch_api.create_patch_port("},{"line_number":76,"context_line":"            integration_bridge,"},{"line_number":77,"context_line":"            ex_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f1d235d_2e12910a","line":74,"in_reply_to":"3f1d235d_e8d37037","updated":"2017-07-02 12:25:37.000000000","message":"We use a patch port here because the external network is connected to a bridge, but SNAT app relies on DNAT app to crate it, so if DNAT app is not loaded, SNAT will not work.\n\nWe can use the patch ports created by provider app but then we\u0027ll need to depend on it rather than DNAT (which is not ideal because SNAT theoretically does not depend on a provider network app, the external IP outside of the networks defined in neutron). Finally, if we share a patch between 2 apps the apps will have to coordinate priorities and other match parameters.","commit_id":"3087b33bba255a0279e8fb50e0dab01d225cca98"}]}
