)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"6b3845f39f06367736aa3dfd2e265c17d4a1071f","unresolved":false,"context_lines":[{"line_number":15,"context_line":"encapsulation/correlation should be preserved across a whole graph"},{"line_number":16,"context_line":"(dictionary of source to (list of) destination port-chains)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The following documentation was updated:"},{"line_number":19,"context_line":"- doc/source/system_design and_workflow.rst"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Change-Id: Iebdfca5467ca33cfd9d93d55f47d6b57b79dffbe"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"ba2be162_55894b74","line":18,"updated":"2017-03-02 19:27:57.000000000","message":"In light of recent discussion, does it make sense to add the DocImpact flag to the commit message?\n\nhttps://wiki.openstack.org/wiki/Documentation/DocImpact","commit_id":"f4eca7465a841d6503e60b59191ab6d88c87ff45"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"e0e553a47189a25dbaff0e907cf579f39454cb07","unresolved":false,"context_lines":[{"line_number":15,"context_line":"encapsulation/correlation should be preserved across a whole graph"},{"line_number":16,"context_line":"(dictionary of source to (list of) destination port-chains)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The following documentation was updated:"},{"line_number":19,"context_line":"- doc/source/system_design and_workflow.rst"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Change-Id: Iebdfca5467ca33cfd9d93d55f47d6b57b79dffbe"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"ba2be162_bf0c193c","line":18,"in_reply_to":"ba2be162_55894b74","updated":"2017-03-03 01:11:50.000000000","message":"Good point, I\u0027ll investigate this a bit tomorrow.","commit_id":"f4eca7465a841d6503e60b59191ab6d88c87ff45"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"37e8ea039877a6dac9359e12d9d047ab4df4ba19","unresolved":false,"context_lines":[{"line_number":15,"context_line":"encapsulation/correlation should be preserved across a whole graph"},{"line_number":16,"context_line":"(dictionary of source to (list of) destination port-chains)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"The following documentation was updated:"},{"line_number":19,"context_line":"- doc/source/system_design and_workflow.rst"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Change-Id: Iebdfca5467ca33cfd9d93d55f47d6b57b79dffbe"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"ba2be162_f185e506","line":18,"in_reply_to":"ba2be162_bf0c193c","updated":"2017-03-03 01:59:46.000000000","message":"You don\u0027t have to, if you remind yourself that this is a feature that most likely you\u0027d like to document for the users!","commit_id":"f4eca7465a841d6503e60b59191ab6d88c87ff45"}],"doc/source/sfc_encapsulation.rst":[{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"ec6bf7728872e9e14a96bc0b3b2074d531a6ab18","unresolved":false,"context_lines":[{"line_number":53,"context_line":"SFC Encapsulation is an architectural concept from IETF SFC, which states [1]:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"\"The SFC Encapsulation provides, at a minimum, SFP identification, and is used"},{"line_number":56,"context_line":" by the SFC-aware functions, such asthe SFF and SFC-aware SFs. The SFC"},{"line_number":57,"context_line":" encapsulation is not used for network packet forwarding. In addition to SFP"},{"line_number":58,"context_line":" identification, the SFC Encapsulation carries metadata including data-plane"},{"line_number":59,"context_line":" context information.\""}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa31d9ce_866c2909","line":56,"updated":"2017-02-15 15:22:57.000000000","message":"nit: missing space :)","commit_id":"6648280a7f1745864bb82f9b1ddc7877c32ca76c"}],"doc/source/sfc_encapsulation_and_graphs.rst":[{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":61,"context_line":"Metadata is a very important capability of SFC Encapsulation, but it\u0027s out of"},{"line_number":62,"context_line":"scope for this first umbrella of work in networking-sfc."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Let\u0027s consider the following simplified use case that requires a single Service"},{"line_number":65,"context_line":"Function Chain: TCP optimization after receiving encrypted traffic (which may"},{"line_number":66,"context_line":"actually contain UDP and not TCP):"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"1. traffic is received somewhere and sent to the networking components capable"},{"line_number":69,"context_line":"   of forwarding and classification;"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"2. if the classification is IPSec encrypted traffic, let\u0027s go to SF1: an IPSec"},{"line_number":72,"context_line":"   security gateway, well prepared to decrypt IPSec traffic;"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"3. traffic is sent from SF1, now decrypted, towards the components capable of"},{"line_number":75,"context_line":"   forwarding and classification"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"4. if the classification is UDP, let\u0027s go to SF2: a generic function inserted"},{"line_number":78,"context_line":"   just to inspect UDP traffic - or something else;"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"5. if the classification is TCP, let\u0027s go to SF3: a TCP optimization function,"},{"line_number":81,"context_line":"   and then go to a NAT function;"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"6. continue forwarding and eventual classification until the end of the SFC."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"SFC use case illustrated: [2]."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Does this work without SFC Encapsulation?"},{"line_number":88,"context_line":"It depends. It can. Without support for SFC Encapsulation, here\u0027s how the above"},{"line_number":89,"context_line":"use case could be fulfilled with networking-sfc (please assume it is possible"},{"line_number":90,"context_line":"to classify IPSec with networking-sfc+OVS, since the actual reality is"},{"line_number":91,"context_line":"irrelevant for the discussion):"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"1. one port-chain made up of a single port-pair-group for the IPsec function,"},{"line_number":94,"context_line":"   with flow classifier IPSec;"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"2. one port-chain made up of a single port-pair-group for the UDP/etc function,"},{"line_number":97,"context_line":"   with flow classifier UDP, and logical_source_port equal to a specific"},{"line_number":98,"context_line":"   port-pair of port-chain #1;"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"3. one port-chain made up of a two port-pair-groups for the TCP Optimization"},{"line_number":101,"context_line":"   function and NAT function respectively, with flow classifier TCP, and"},{"line_number":102,"context_line":"   logical_source_port equal to a specific port-pair of port-chain #1;"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"At a first glance, it seems that it would work fine. And it can. Since we can"},{"line_number":105,"context_line":"match on the respective egressing Neutron ports of each port-pair of the IPSec"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_3bdf0c3b","line":102,"range":{"start_line":64,"start_character":0,"end_line":102,"end_character":70},"updated":"2017-02-15 19:36:03.000000000","message":"not sure all this is relevant to this patch.\nThe core of this patch is to allow support for a mix of\nSFs with different SFC encap capability.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":61,"context_line":"Metadata is a very important capability of SFC Encapsulation, but it\u0027s out of"},{"line_number":62,"context_line":"scope for this first umbrella of work in networking-sfc."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Let\u0027s consider the following simplified use case that requires a single Service"},{"line_number":65,"context_line":"Function Chain: TCP optimization after receiving encrypted traffic (which may"},{"line_number":66,"context_line":"actually contain UDP and not TCP):"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"1. traffic is received somewhere and sent to the networking components capable"},{"line_number":69,"context_line":"   of forwarding and classification;"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"2. if the classification is IPSec encrypted traffic, let\u0027s go to SF1: an IPSec"},{"line_number":72,"context_line":"   security gateway, well prepared to decrypt IPSec traffic;"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"3. traffic is sent from SF1, now decrypted, towards the components capable of"},{"line_number":75,"context_line":"   forwarding and classification"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"4. if the classification is UDP, let\u0027s go to SF2: a generic function inserted"},{"line_number":78,"context_line":"   just to inspect UDP traffic - or something else;"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"5. if the classification is TCP, let\u0027s go to SF3: a TCP optimization function,"},{"line_number":81,"context_line":"   and then go to a NAT function;"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"6. continue forwarding and eventual classification until the end of the SFC."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"SFC use case illustrated: [2]."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Does this work without SFC Encapsulation?"},{"line_number":88,"context_line":"It depends. It can. Without support for SFC Encapsulation, here\u0027s how the above"},{"line_number":89,"context_line":"use case could be fulfilled with networking-sfc (please assume it is possible"},{"line_number":90,"context_line":"to classify IPSec with networking-sfc+OVS, since the actual reality is"},{"line_number":91,"context_line":"irrelevant for the discussion):"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"1. one port-chain made up of a single port-pair-group for the IPsec function,"},{"line_number":94,"context_line":"   with flow classifier IPSec;"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"2. one port-chain made up of a single port-pair-group for the UDP/etc function,"},{"line_number":97,"context_line":"   with flow classifier UDP, and logical_source_port equal to a specific"},{"line_number":98,"context_line":"   port-pair of port-chain #1;"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"3. one port-chain made up of a two port-pair-groups for the TCP Optimization"},{"line_number":101,"context_line":"   function and NAT function respectively, with flow classifier TCP, and"},{"line_number":102,"context_line":"   logical_source_port equal to a specific port-pair of port-chain #1;"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"At a first glance, it seems that it would work fine. And it can. Since we can"},{"line_number":105,"context_line":"match on the respective egressing Neutron ports of each port-pair of the IPSec"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_de332561","line":102,"range":{"start_line":64,"start_character":0,"end_line":102,"end_character":70},"in_reply_to":"fa31d9ce_3bdf0c3b","updated":"2017-02-16 10:24:34.000000000","message":"I understand. Is it OK if the title is \"SFC Encapsulation\" for now and, after the graphs patch, I renamed it to \"SFC Encapsulation and Graphs\" along with the filename?","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":101,"context_line":"   function and NAT function respectively, with flow classifier TCP, and"},{"line_number":102,"context_line":"   logical_source_port equal to a specific port-pair of port-chain #1;"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"At a first glance, it seems that it would work fine. And it can. Since we can"},{"line_number":105,"context_line":"match on the respective egressing Neutron ports of each port-pair of the IPSec"},{"line_number":106,"context_line":"function PPG, we can add them as an ingressing constraint/classification when"},{"line_number":107,"context_line":"selecting the second and third port-chains (which will depend on whether"},{"line_number":108,"context_line":"traffic is UDP or TCP, the actual traffic classification)."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"But, what is the environment around these port chains?"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"What if the TCP Optimization port-pair-group (or even just one of its"},{"line_number":113,"context_line":"port-pairs) is used in another port-chain that shares the same flow classifier"},{"line_number":114,"context_line":"(TCP)? Let\u0027s call this new port-chain: port-chain #4."},{"line_number":115,"context_line":"If the next port-pair-group of port-chain #4, after the TCP optimizer, is not"},{"line_number":116,"context_line":"the NAT function, then traffic that flows through either port-chain #3 or #4"},{"line_number":117,"context_line":"might get mixed and go to the wrong function."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"As such, this is a possible scenario that would justify the use of"},{"line_number":120,"context_line":"SFC Encapsulation. Also, the fact that only 1 port-pair should be provided for"},{"line_number":121,"context_line":"the IPSec function is another drawback."},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"Does the previous scenario work by simply supporting NSH in networking-sfc?"},{"line_number":124,"context_line":"The issue explained previously will not occur because traffic is supposed to"},{"line_number":125,"context_line":"be encapsulated end-to-end, and will always be associated to specific Service"},{"line_number":126,"context_line":"Function Paths (SFP) (port-chains resemble SFPs in the sense that they are"},{"line_number":127,"context_line":"linear and unidirectional sequences of functions that the traffic goes through,"},{"line_number":128,"context_line":"even though multiple instances can provided a specific"},{"line_number":129,"context_line":"function at a given point). So, traffic between the port chains #3"},{"line_number":130,"context_line":"and #4 wouldn\u0027t really get mixed up."},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"But what happens when the TCP optimization function is (again) part of other"},{"line_number":133,"context_line":"chains but, in those chains, it is receiving traffic (of the same class as in"},{"line_number":134,"context_line":"port-chain #3, TCP) from another function where this latter one has multiple"},{"line_number":135,"context_line":"different sources of traffic for different port-chains."},{"line_number":136,"context_line":"Please see the following figure for hopefully a better illustration of the"},{"line_number":137,"context_line":"issue (SFs don\u0027t match SFs in above use case): [3]."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"This is a difficult example but illustrates the need to scope Service Function"},{"line_number":140,"context_line":"Paths to Service Function Chains, by connecting the port-chains through SFP"},{"line_number":141,"context_line":"identifiers rather than port-pairs, or by having an additional resource which"},{"line_number":142,"context_line":"would be the Service Function Chain (to scope the SFPs). With or without an"},{"line_number":143,"context_line":"additional resource to represent the graph, having multiple port-chains/SFPs"},{"line_number":144,"context_line":"connected through explicit SFP identifiers in the end still yields a graphs."},{"line_number":145,"context_line":"Consequently, graphs always need to be somehow defined at Neutron level,"},{"line_number":146,"context_line":"rather than only orchestration level. Paths need to be scoped to SFCs (which"},{"line_number":147,"context_line":"are graphs) or need to be explicitly connected through SFP identifiers,"},{"line_number":148,"context_line":"or the API can\u0027t support SFC Encapsulation."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"Usage"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_1b0ec8e4","line":148,"range":{"start_line":104,"start_character":0,"end_line":148,"end_character":43},"updated":"2017-02-15 19:36:03.000000000","message":"not sure all this is relevant to for this patch.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"``keyword\u003d\u0027correlation\u0027``"},{"line_number":204,"context_line":"``value\u003d\u0027mpls\u0027``"},{"line_number":205,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":208,"context_line":"which today, the only compatible one, is only Open vSwitch. Through the OVS SFC"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_1b6de8cb","line":205,"range":{"start_line":205,"start_character":2,"end_line":205,"end_character":6},"updated":"2017-02-15 19:36:03.000000000","message":"pair?","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"``keyword\u003d\u0027correlation\u0027``"},{"line_number":204,"context_line":"``value\u003d\u0027mpls\u0027``"},{"line_number":205,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":208,"context_line":"which today, the only compatible one, is only Open vSwitch. Through the OVS SFC"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_9eec4d94","line":205,"range":{"start_line":205,"start_character":2,"end_line":205,"end_character":6},"in_reply_to":"fa31d9ce_1b6de8cb","updated":"2017-02-16 10:24:34.000000000","message":"Yes, that is the specific name of that field in the db: https://github.com/openstack/networking-sfc/blob/ba55d2362abb887ddb6af4897d8112fd3004c01e/networking_sfc/db/sfc_db.py#L60","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":205,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":208,"context_line":"which today, the only compatible one, is only Open vSwitch. Through the OVS SFC"},{"line_number":209,"context_line":"driver and agent, the vswitches on the multiple nodes where networking-sfc is"},{"line_number":210,"context_line":"deployed will be configured with the set of flows that allow classification,"},{"line_number":211,"context_line":"encapsulation, decapsulation and forwarding of MPLS tagged or untagged packets."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_9be63842","line":208,"range":{"start_line":208,"start_character":0,"end_line":208,"end_character":59},"updated":"2017-02-15 19:36:03.000000000","message":"there are other back-end implementations for ODL and ONOS SDN controllers which may use this.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":205,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":208,"context_line":"which today, the only compatible one, is only Open vSwitch. Through the OVS SFC"},{"line_number":209,"context_line":"driver and agent, the vswitches on the multiple nodes where networking-sfc is"},{"line_number":210,"context_line":"deployed will be configured with the set of flows that allow classification,"},{"line_number":211,"context_line":"encapsulation, decapsulation and forwarding of MPLS tagged or untagged packets."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_7ef8794a","line":208,"range":{"start_line":208,"start_character":0,"end_line":208,"end_character":59},"in_reply_to":"fa31d9ce_9be63842","updated":"2017-02-16 10:24:34.000000000","message":"Alright, I will rephrase this appropriately.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":215,"context_line":"In networking-sfc, the OVS driver talks to the agents on the multiple compute"},{"line_number":216,"context_line":"nodes by sending \"flow rule\" messages to them across the RPC channels."},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"In flow rules, correlation parameters of both port-chains and port-pairs are"},{"line_number":219,"context_line":"specified using the ``pc_corr`` and ``pp_corr`` flow rule keys, respectively."},{"line_number":220,"context_line":"Moreover, a ``pp_corr`` key is also specified in each of the hops of the"},{"line_number":221,"context_line":"``next_hops`` flow rule key. The following is an example of an sf_node flow"},{"line_number":222,"context_line":"rule (taken from one of the SFC OVS agent\u0027s unit tests)."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_bbe13c2c","line":219,"range":{"start_line":218,"start_character":0,"end_line":219,"end_character":76},"updated":"2017-02-15 19:36:03.000000000","message":"Add text to clearly define usage of pc_corr and pp_corr:\n\n- pc_corr is the correlation mechanism (SFC encapsulation) to be used for the entire  port-chain. The values may be None, MPLS, or NSH (when supported)\n\n- pp_corr is the correlation mechanism supported by an individual SF.\n\nThe backend driver compares pc_corr and pp_corr to determine\nif SFC Proxy is needed for a SF that is not capable processing\nthe SFC encapsulation mechanism. For example, is pc_corr is\nMPLS and pp_corr is None, the SF Proxy is needed.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":215,"context_line":"In networking-sfc, the OVS driver talks to the agents on the multiple compute"},{"line_number":216,"context_line":"nodes by sending \"flow rule\" messages to them across the RPC channels."},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"In flow rules, correlation parameters of both port-chains and port-pairs are"},{"line_number":219,"context_line":"specified using the ``pc_corr`` and ``pp_corr`` flow rule keys, respectively."},{"line_number":220,"context_line":"Moreover, a ``pp_corr`` key is also specified in each of the hops of the"},{"line_number":221,"context_line":"``next_hops`` flow rule key. The following is an example of an sf_node flow"},{"line_number":222,"context_line":"rule (taken from one of the SFC OVS agent\u0027s unit tests)."}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_b97ccbec","line":219,"range":{"start_line":218,"start_character":0,"end_line":219,"end_character":76},"in_reply_to":"fa31d9ce_bbe13c2c","updated":"2017-02-16 10:24:34.000000000","message":"Got it, will improve.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":264,"context_line":"The three appearances will dictate how flows (both matches and actions) will"},{"line_number":265,"context_line":"be added by the OVS agent."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"Assuming ``pc_corr`` is always set to MPLS (its only possible value in the"},{"line_number":268,"context_line":"latest version of networking-sfc), let\u0027s take a look at the possible scenarios:"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"1. pp_corr\u003dmpls and every next_hop\u0027s pp_corr\u003dmpls"},{"line_number":271,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_2840a006","line":268,"range":{"start_line":267,"start_character":0,"end_line":268,"end_character":79},"updated":"2017-02-15 19:36:03.000000000","message":"A table may make this clearer:\n\nIn case 1 and 2, the SF is MPLS(NSH)-aware (pp_corr\u003dMPLS).\nIn cases 3 and 4, the SF is MPLS(NSH)-unaware (pp_corr\u003dMPLS)\nand SFC Proxy functionality is required to remove the MPLS(NSH) hreader on ingress to the SF; re-classify\nand add the MPLS(NSH) header on egress from the SF. \n\nCurrent  Next Hop   Action\nHop      Hop\npp_corr  pp_corr\n--------------------------------------------\n1. MPLS  MPLS   Ingress to SF: send MPLS to SF\n                Egress from SF: use MPLS to determine next hop\n\n2. MPLS  None   Ingress: send MPLS to SF\n                Egress: use MPLS to determine next hop\n\n3. None  MPLS   Ingress: remove MPLS, send pkt to SF\n                Egress: reclassify packet, add MPLS\n\n4. None  None   Ingress: remove MPLS, send pkt to SF\n                Egress reclassify packet, add MPLS","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":264,"context_line":"The three appearances will dictate how flows (both matches and actions) will"},{"line_number":265,"context_line":"be added by the OVS agent."},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"Assuming ``pc_corr`` is always set to MPLS (its only possible value in the"},{"line_number":268,"context_line":"latest version of networking-sfc), let\u0027s take a look at the possible scenarios:"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"1. pp_corr\u003dmpls and every next_hop\u0027s pp_corr\u003dmpls"},{"line_number":271,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa31d9ce_39d7fbc0","line":268,"range":{"start_line":267,"start_character":0,"end_line":268,"end_character":79},"in_reply_to":"fa31d9ce_2840a006","updated":"2017-02-16 10:24:34.000000000","message":"Much better, thanks.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"}],"doc/source/system_design and_workflow.rst":[{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"f3d1b98d42f1221caa3e95fc565d52a6b5c9f878","unresolved":false,"context_lines":[{"line_number":283,"context_line":"To clarify, MPLS correlation cannot be strictly"},{"line_number":284,"context_line":"called SFC Encapsulation since it doesn\u0027t fully encapsulate the packets,"},{"line_number":285,"context_line":"amongst other limitations such as available space to carry metadata [1]."},{"line_number":286,"context_line":"However, since it is can be used for SFP identification, it is a good"},{"line_number":287,"context_line":"workaround to exercise the IETF SFC Encapsulation architectural concept in"},{"line_number":288,"context_line":"networking-sfc."},{"line_number":289,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"da36d5c6_e30a0e79","line":286,"range":{"start_line":286,"start_character":18,"end_line":286,"end_character":20},"updated":"2017-02-27 16:58:12.000000000","message":"nit: to remove (later)","commit_id":"247b8bf533348ec442a065a3ea23648a1dbb5b14"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"75f82a10b11d928031df96f517bf109457bb752d","unresolved":false,"context_lines":[{"line_number":283,"context_line":"To clarify, MPLS correlation cannot be strictly"},{"line_number":284,"context_line":"called SFC Encapsulation since it doesn\u0027t fully encapsulate the packets,"},{"line_number":285,"context_line":"amongst other limitations such as available space to carry metadata [1]."},{"line_number":286,"context_line":"However, since it is can be used for SFP identification, it is a good"},{"line_number":287,"context_line":"workaround to exercise the IETF SFC Encapsulation architectural concept in"},{"line_number":288,"context_line":"networking-sfc."},{"line_number":289,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"da36d5c6_8b1c04c3","line":286,"range":{"start_line":286,"start_character":18,"end_line":286,"end_character":20},"in_reply_to":"da36d5c6_e30a0e79","updated":"2017-02-27 17:41:19.000000000","message":"Thanks, will fix.","commit_id":"247b8bf533348ec442a065a3ea23648a1dbb5b14"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":341,"context_line":"for such, the resulting behaviour of the built-in load-balancer in OVS would be"},{"line_number":342,"context_line":"inconsistent and unexpected, where some packets would get encapsulated while"},{"line_number":343,"context_line":"others wouldn\u0027t. A better solution for this would be an API change to prevent"},{"line_number":344,"context_line":"heterogeneous port-pairs in port-pair-groups, or simply move the correlation"},{"line_number":345,"context_line":"attribute to port-pair-group."},{"line_number":346,"context_line":""},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_b94cc077","line":345,"range":{"start_line":344,"start_character":49,"end_line":345,"end_character":28},"updated":"2017-02-28 18:13:37.000000000","message":"This seems like it would be a better design. Why didn\u0027t we do it that way?","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":11907,"name":"cathy","email":"cathy.h.zhang@huawei.com","username":"cathy"},"change_message_id":"a5324d0827c8460779907ec6516d0d6194ae3845","unresolved":false,"context_lines":[{"line_number":341,"context_line":"for such, the resulting behaviour of the built-in load-balancer in OVS would be"},{"line_number":342,"context_line":"inconsistent and unexpected, where some packets would get encapsulated while"},{"line_number":343,"context_line":"others wouldn\u0027t. A better solution for this would be an API change to prevent"},{"line_number":344,"context_line":"heterogeneous port-pairs in port-pair-groups, or simply move the correlation"},{"line_number":345,"context_line":"attribute to port-pair-group."},{"line_number":346,"context_line":""},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_14d671c5","line":345,"range":{"start_line":344,"start_character":49,"end_line":345,"end_character":28},"in_reply_to":"ba2be162_b94cc077","updated":"2017-02-28 19:18:04.000000000","message":"Agree with Paul. Originally port-pair-group API did not have a \"param\" field for specifying correlation. Now that it had been added, we should move the encap correlation attribute from port-pair to port-pair-group.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":11907,"name":"cathy","email":"cathy.h.zhang@huawei.com","username":"cathy"},"change_message_id":"a5324d0827c8460779907ec6516d0d6194ae3845","unresolved":false,"context_lines":[{"line_number":357,"context_line":""},{"line_number":358,"context_line":"``keyword\u003d\u0027correlation\u0027``"},{"line_number":359,"context_line":"``value\u003d\u0027mpls\u0027``"},{"line_number":360,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":361,"context_line":""},{"line_number":362,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":363,"context_line":"such as Open vSwitch. Through the OVS SFC driver and agent, the vswitches"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_9490a1ee","line":360,"range":{"start_line":360,"start_character":10,"end_line":360,"end_character":24},"updated":"2017-02-28 19:18:04.000000000","message":"should be pair_id","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"a30eaec1db5b920ba0412a17855258246d23d9da","unresolved":false,"context_lines":[{"line_number":357,"context_line":""},{"line_number":358,"context_line":"``keyword\u003d\u0027correlation\u0027``"},{"line_number":359,"context_line":"``value\u003d\u0027mpls\u0027``"},{"line_number":360,"context_line":"``paid_id\u003dPORT_PAIR_UUID``"},{"line_number":361,"context_line":""},{"line_number":362,"context_line":"The MPLS correlation parameter will eventually be fed to the enabled backend,"},{"line_number":363,"context_line":"such as Open vSwitch. Through the OVS SFC driver and agent, the vswitches"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_1db4d5f0","line":360,"range":{"start_line":360,"start_character":10,"end_line":360,"end_character":24},"in_reply_to":"ba2be162_9490a1ee","updated":"2017-02-28 19:26:04.000000000","message":"Oops, thanks!","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"The backend driver compares ``pc_corr`` and ``pp_corr`` to determine if SFC"},{"line_number":385,"context_line":"Proxy is needed for a SF that is not capable of processing the"},{"line_number":386,"context_line":"SFC Encapsulation mechanism. For example, is ``pc_corr`` is"},{"line_number":387,"context_line":"MPLS ``and`` pp_corr is None, the SFC Proxy is needed."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"The following is an example of an sf_node flow"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_19aa2cd5","line":386,"range":{"start_line":386,"start_character":42,"end_line":386,"end_character":44},"updated":"2017-02-28 18:13:37.000000000","message":"is -\u003e if","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":384,"context_line":"The backend driver compares ``pc_corr`` and ``pp_corr`` to determine if SFC"},{"line_number":385,"context_line":"Proxy is needed for a SF that is not capable of processing the"},{"line_number":386,"context_line":"SFC Encapsulation mechanism. For example, is ``pc_corr`` is"},{"line_number":387,"context_line":"MPLS ``and`` pp_corr is None, the SFC Proxy is needed."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"The following is an example of an sf_node flow"},{"line_number":390,"context_line":"rule (taken from one of the SFC OVS agent\u0027s unit tests)."}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_192b0c32","line":387,"range":{"start_line":387,"start_character":5,"end_line":387,"end_character":12},"updated":"2017-02-28 18:13:37.000000000","message":"I don\u0027t think this should have backticks. Maybe bold if you want, unless you want to put the entire line in backticks as a code fragment e.g.\n\n ``if pc_corr \u003d\u003d \u0027mpls\u0027 and pp_corr is None``","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":384,"context_line":"The backend driver compares ``pc_corr`` and ``pp_corr`` to determine if SFC"},{"line_number":385,"context_line":"Proxy is needed for a SF that is not capable of processing the"},{"line_number":386,"context_line":"SFC Encapsulation mechanism. For example, is ``pc_corr`` is"},{"line_number":387,"context_line":"MPLS ``and`` pp_corr is None, the SFC Proxy is needed."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"The following is an example of an sf_node flow"},{"line_number":390,"context_line":"rule (taken from one of the SFC OVS agent\u0027s unit tests)."}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_39dd3071","line":387,"range":{"start_line":387,"start_character":0,"end_line":387,"end_character":4},"updated":"2017-02-28 18:13:37.000000000","message":"MPLS -\u003e ``mpls`` since this is referring to the actual content of the data across the RPC","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"6033a0cc2fe0cf0ba3f33eebeb34f5f935d3c73b","unresolved":false,"context_lines":[{"line_number":384,"context_line":"The backend driver compares ``pc_corr`` and ``pp_corr`` to determine if SFC"},{"line_number":385,"context_line":"Proxy is needed for a SF that is not capable of processing the"},{"line_number":386,"context_line":"SFC Encapsulation mechanism. For example, is ``pc_corr`` is"},{"line_number":387,"context_line":"MPLS ``and`` pp_corr is None, the SFC Proxy is needed."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"The following is an example of an sf_node flow"},{"line_number":390,"context_line":"rule (taken from one of the SFC OVS agent\u0027s unit tests)."}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_235a5a84","line":387,"range":{"start_line":387,"start_character":5,"end_line":387,"end_character":12},"in_reply_to":"ba2be162_192b0c32","updated":"2017-02-28 20:45:27.000000000","message":"Nice catch, that \"and\" was a mistake.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":432,"context_line":"The three appearances will dictate how flows (both matches and actions) will"},{"line_number":433,"context_line":"be added by the OVS agent."},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"Assuming ``pc_corr`` is always set to MPLS (its only possible value in the"},{"line_number":436,"context_line":"latest version of networking-sfc), let\u0027s take a look at the possible scenarios:"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"+-+------------------+------------------+-------------------------------------+"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_f9b39808","line":435,"range":{"start_line":435,"start_character":38,"end_line":435,"end_character":42},"updated":"2017-02-28 18:13:37.000000000","message":"here too I think this should be ``mpls`` when referring to the actual data  in the code and RPC.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":11907,"name":"cathy","email":"cathy.h.zhang@huawei.com","username":"cathy"},"change_message_id":"a5324d0827c8460779907ec6516d0d6194ae3845","unresolved":false,"context_lines":[{"line_number":433,"context_line":"be added by the OVS agent."},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"Assuming ``pc_corr`` is always set to MPLS (its only possible value in the"},{"line_number":436,"context_line":"latest version of networking-sfc), let\u0027s take a look at the possible scenarios:"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"+-+------------------+------------------+-------------------------------------+"},{"line_number":439,"context_line":"| | Curr Hop pp_corr | Next Hop pp_corr |              Action                 |"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_9a4b6b59","line":436,"range":{"start_line":436,"start_character":29,"end_line":436,"end_character":32},"updated":"2017-02-28 19:18:04.000000000","message":"chain correlation should be configurable, not hardcoded to mpls. For now the only allowed value is MPLS. Could you change the statement to reflect this?","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"a30eaec1db5b920ba0412a17855258246d23d9da","unresolved":false,"context_lines":[{"line_number":433,"context_line":"be added by the OVS agent."},{"line_number":434,"context_line":""},{"line_number":435,"context_line":"Assuming ``pc_corr`` is always set to MPLS (its only possible value in the"},{"line_number":436,"context_line":"latest version of networking-sfc), let\u0027s take a look at the possible scenarios:"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"+-+------------------+------------------+-------------------------------------+"},{"line_number":439,"context_line":"| | Curr Hop pp_corr | Next Hop pp_corr |              Action                 |"}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_3db0b9f4","line":436,"range":{"start_line":436,"start_character":29,"end_line":436,"end_character":32},"in_reply_to":"ba2be162_9a4b6b59","updated":"2017-02-28 19:26:04.000000000","message":"Yes I will rephrase this.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":11907,"name":"cathy","email":"cathy.h.zhang@huawei.com","username":"cathy"},"change_message_id":"a5324d0827c8460779907ec6516d0d6194ae3845","unresolved":false,"context_lines":[{"line_number":455,"context_line":"| |                  |                  | Ingress to next SF: pop MPLS first  |"},{"line_number":456,"context_line":"+-+------------------+------------------+-------------------------------------+"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"The following further explains each of the possibilities from the table above."},{"line_number":459,"context_line":""},{"line_number":460,"context_line":"1. pp_corr\u003dmpls and every next_hop\u0027s pp_corr\u003dmpls"},{"line_number":461,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_9d90c597","line":458,"range":{"start_line":458,"start_character":22,"end_line":458,"end_character":30},"updated":"2017-02-28 19:18:04.000000000","message":"In our code the action does not depend on Next Hop pp_corr. I think adding the Next Hop pp_corr in the table and description could confuse people since there is no need to look at Next Hop pp_corr for determine the action for this hop. Could you update those places that have Next Hop pp_corr?","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"a30eaec1db5b920ba0412a17855258246d23d9da","unresolved":false,"context_lines":[{"line_number":455,"context_line":"| |                  |                  | Ingress to next SF: pop MPLS first  |"},{"line_number":456,"context_line":"+-+------------------+------------------+-------------------------------------+"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"The following further explains each of the possibilities from the table above."},{"line_number":459,"context_line":""},{"line_number":460,"context_line":"1. pp_corr\u003dmpls and every next_hop\u0027s pp_corr\u003dmpls"},{"line_number":461,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"ba2be162_3dec39c7","line":458,"range":{"start_line":458,"start_character":22,"end_line":458,"end_character":30},"in_reply_to":"ba2be162_9d90c597","updated":"2017-02-28 19:26:04.000000000","message":"However, next_hops will influence the flows of the current path node. Depending on its pp_corr, the actions will be slightly different (as described below). The classic networking-sfc logic remains unchanged (i.e. no correlation in any port-pair).","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"}],"networking_sfc/cli/port_chain.py":[{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"6409aec5c624c1f3171837e3938a50e9bade1a20","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                   \u0027This option can be repeated.\u0027))"},{"line_number":64,"context_line":"        parser.add_argument("},{"line_number":65,"context_line":"            \u0027--chain-parameters\u0027,"},{"line_number":66,"context_line":"            metavar\u003d\u0027KEY\u003dVALUE\u0027,"},{"line_number":67,"context_line":"            type\u003dutils.str2dict_type(optional_keys\u003d[\u0027correlation\u0027,"},{"line_number":68,"context_line":"                                                    \u0027symmetric\u0027]),"},{"line_number":69,"context_line":"            help\u003d_(\u0027Dictionary of chain parameters. Supports \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_58639c1a","line":66,"updated":"2017-01-26 14:55:16.000000000","message":"Why the more generic value?","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                   \u0027This option can be repeated.\u0027))"},{"line_number":64,"context_line":"        parser.add_argument("},{"line_number":65,"context_line":"            \u0027--chain-parameters\u0027,"},{"line_number":66,"context_line":"            metavar\u003d\u0027KEY\u003dVALUE\u0027,"},{"line_number":67,"context_line":"            type\u003dutils.str2dict_type(optional_keys\u003d[\u0027correlation\u0027,"},{"line_number":68,"context_line":"                                                    \u0027symmetric\u0027]),"},{"line_number":69,"context_line":"            help\u003d_(\u0027Dictionary of chain parameters. Supports \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_579b1472","line":66,"in_reply_to":"3a461143_58639c1a","updated":"2017-01-29 13:35:27.000000000","message":"I think this is a rebase artifact. I will switch to the newer stricter metavar.","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"}],"networking_sfc/extensions/sfc.py":[{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"ff5882e1a38946c29191d5a194b8ba70cf3c136a","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    return port_pair_groups"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"def normalize_chain_parameters(parameters):"},{"line_number":147,"context_line":"    if not parameters:"},{"line_number":148,"context_line":"        return DEFAULT_CHAIN_PARAMETERS"},{"line_number":149,"context_line":"    if \u0027correlation\u0027 not in parameters:"},{"line_number":150,"context_line":"        parameters[\u0027correlation\u0027] \u003d DEFAULT_CHAIN_CORRELATION"},{"line_number":151,"context_line":"    if \u0027symmetric\u0027 not in parameters:"},{"line_number":152,"context_line":"        parameters[\u0027symmetric\u0027] \u003d DEFAULT_CHAIN_SYMMETRY"},{"line_number":153,"context_line":"    return parameters"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"def normalize_sf_parameters(parameters):"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba2be162_fd862164","line":153,"range":{"start_line":146,"start_character":0,"end_line":153,"end_character":21},"updated":"2017-02-28 19:17:47.000000000","message":"Check parent commit.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"688f3a6a84fa90154965c57903580e4c080d0b1f","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                \u0027type:dict\u0027: {"},{"line_number":203,"context_line":"                    \u0027correlation\u0027: {"},{"line_number":204,"context_line":"                        \u0027default\u0027: DEFAULT_SF_PARAMETERS[\u0027correlation\u0027],"},{"line_number":205,"context_line":"                        \u0027type:values\u0027: [None, \u0027mpls\u0027]"},{"line_number":206,"context_line":"                    },"},{"line_number":207,"context_line":"                    \u0027weight\u0027: {"},{"line_number":208,"context_line":"                        \u0027default\u0027: DEFAULT_SF_PARAMETERS[\u0027weight\u0027],"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba2be162_19b5cccc","line":205,"updated":"2017-02-28 18:13:37.000000000","message":"I\u0027ve added this to the neutron-lib API def I\u0027m working on.","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"ff5882e1a38946c29191d5a194b8ba70cf3c136a","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                \u0027type:dict\u0027: {"},{"line_number":203,"context_line":"                    \u0027correlation\u0027: {"},{"line_number":204,"context_line":"                        \u0027default\u0027: DEFAULT_SF_PARAMETERS[\u0027correlation\u0027],"},{"line_number":205,"context_line":"                        \u0027type:values\u0027: [None, \u0027mpls\u0027]"},{"line_number":206,"context_line":"                    },"},{"line_number":207,"context_line":"                    \u0027weight\u0027: {"},{"line_number":208,"context_line":"                        \u0027default\u0027: DEFAULT_SF_PARAMETERS[\u0027weight\u0027],"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba2be162_1da5b503","line":205,"in_reply_to":"ba2be162_19b5cccc","updated":"2017-02-28 19:17:47.000000000","message":"Thank you!","commit_id":"06d7c8c270f69c28e0bbf0ee97cbd5c312a0a7bc"}],"networking_sfc/services/sfc/agent/extensions/openvswitch/sfc_driver.py":[{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"6409aec5c624c1f3171837e3938a50e9bade1a20","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            if flowrule.get(\u0027egress\u0027, None):"},{"line_number":98,"context_line":"                self._setup_egress_flow_rules(flowrule)"},{"line_number":99,"context_line":"            if flowrule.get(\u0027ingress\u0027, None):"},{"line_number":100,"context_line":"                self._setup_ingress_flow_rules(flowrule)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"            flowrule_status_temp \u003d {}"},{"line_number":103,"context_line":"            flowrule_status_temp[\u0027id\u0027] \u003d flowrule[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_b82ba02f","line":100,"updated":"2017-01-26 14:55:16.000000000","message":"Sorry I forgot this one in renaming","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            if flowrule.get(\u0027egress\u0027, None):"},{"line_number":98,"context_line":"                self._setup_egress_flow_rules(flowrule)"},{"line_number":99,"context_line":"            if flowrule.get(\u0027ingress\u0027, None):"},{"line_number":100,"context_line":"                self._setup_ingress_flow_rules(flowrule)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"            flowrule_status_temp \u003d {}"},{"line_number":103,"context_line":"            flowrule_status_temp[\u0027id\u0027] \u003d flowrule[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_3775a831","line":100,"in_reply_to":"3a461143_b82ba02f","updated":"2017-01-29 13:35:27.000000000","message":":)","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"fe56448d117d2dd3497a36c110fdedd38141f28d","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            LOG.debug(\"delete_flow_rule, flowrule \u003d %s\","},{"line_number":117,"context_line":"                      flowrule)"},{"line_number":118,"context_line":"            sfc_encap \u003d flowrule[\u0027sfc_encap\u0027]"},{"line_number":119,"context_line":"            # delete tunnel table flow rule on br-int(egress match)"},{"line_number":120,"context_line":"            if flowrule[\u0027egress\u0027] is not None:"},{"line_number":121,"context_line":"                self._setup_local_switch_flows_on_int_br("}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_01bef5d3","line":118,"range":{"start_line":118,"start_character":12,"end_line":118,"end_character":21},"updated":"2017-01-26 18:40:30.000000000","message":"is this same as pp_corr?","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            LOG.debug(\"delete_flow_rule, flowrule \u003d %s\","},{"line_number":117,"context_line":"                      flowrule)"},{"line_number":118,"context_line":"            sfc_encap \u003d flowrule[\u0027sfc_encap\u0027]"},{"line_number":119,"context_line":"            # delete tunnel table flow rule on br-int(egress match)"},{"line_number":120,"context_line":"            if flowrule[\u0027egress\u0027] is not None:"},{"line_number":121,"context_line":"                self._setup_local_switch_flows_on_int_br("}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_77b810c9","line":118,"range":{"start_line":118,"start_character":12,"end_line":118,"end_character":21},"in_reply_to":"3a461143_01bef5d3","updated":"2017-01-29 13:35:27.000000000","message":"No, that would be the \"pc_corr\" we discussed at the IRC meeting.\n\nWhenever I use sfc_encap it refers to the chain-wide encapsulation/correlation. You might be puzzled on why I\u0027ve added this to this patch, since the only possible value is MPLS. The reason is that, after this patch, adding other encapsulation protocols will be much easier (the same reason the method called on line 100 above got renamed). The later NSH patch will be a small addition focused only on the protocol and less so on code refactoring.\n\nSpecifically about sfc_encap, I can rename it to pc_corr. And rename correlation to pp_corr, what do you think? I originally didn\u0027t want to rename \"correlation\" to avoid subtractive changes to the flow rules \"interface\".","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"fe56448d117d2dd3497a36c110fdedd38141f28d","unresolved":false,"context_lines":[{"line_number":141,"context_line":"                if vif_port:"},{"line_number":142,"context_line":"                    # third, install br-int flow rule on table INGRESS_TABLE"},{"line_number":143,"context_line":"                    # for ingress traffic"},{"line_number":144,"context_line":"                    if sfc_encap \u003d\u003d \u0027mpls\u0027:"},{"line_number":145,"context_line":"                        self._delete_flows_mpls(flowrule, vif_port)"},{"line_number":146,"context_line":"        except Exception as e:"},{"line_number":147,"context_line":"            flowrule_status_temp \u003d {}"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_a1c9a17a","line":144,"range":{"start_line":144,"start_character":23,"end_line":144,"end_character":32},"updated":"2017-01-26 18:40:30.000000000","message":"pp_corr?","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":141,"context_line":"                if vif_port:"},{"line_number":142,"context_line":"                    # third, install br-int flow rule on table INGRESS_TABLE"},{"line_number":143,"context_line":"                    # for ingress traffic"},{"line_number":144,"context_line":"                    if sfc_encap \u003d\u003d \u0027mpls\u0027:"},{"line_number":145,"context_line":"                        self._delete_flows_mpls(flowrule, vif_port)"},{"line_number":146,"context_line":"        except Exception as e:"},{"line_number":147,"context_line":"            flowrule_status_temp \u003d {}"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_97bd7cb9","line":144,"range":{"start_line":144,"start_character":23,"end_line":144,"end_character":32},"in_reply_to":"3a461143_a1c9a17a","updated":"2017-01-29 13:35:27.000000000","message":"pc_corr","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"6409aec5c624c1f3171837e3938a50e9bade1a20","unresolved":false,"context_lines":[{"line_number":446,"context_line":""},{"line_number":447,"context_line":"            self.br_int.add_flow(**match_field)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"    def _build_classification_match_sfc_mpls(self, flowrule, match_info):"},{"line_number":450,"context_line":"        match_info[\u0027dl_type\u0027] \u003d 0x8847"},{"line_number":451,"context_line":"        match_info[\u0027mpls_label\u0027] \u003d ((flowrule[\u0027nsp\u0027] \u003c\u003c 8) |"},{"line_number":452,"context_line":"                                    (flowrule[\u0027nsi\u0027]))"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_d83f8c23","line":449,"updated":"2017-01-26 14:55:16.000000000","message":"We can probably regroup and separate these MPLS-specific bits, but having them as separate functions is already great!","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":446,"context_line":""},{"line_number":447,"context_line":"            self.br_int.add_flow(**match_field)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"    def _build_classification_match_sfc_mpls(self, flowrule, match_info):"},{"line_number":450,"context_line":"        match_info[\u0027dl_type\u0027] \u003d 0x8847"},{"line_number":451,"context_line":"        match_info[\u0027mpls_label\u0027] \u003d ((flowrule[\u0027nsp\u0027] \u003c\u003c 8) |"},{"line_number":452,"context_line":"                                    (flowrule[\u0027nsi\u0027]))"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_d7eaa4ab","line":449,"in_reply_to":"3a461143_d83f8c23","updated":"2017-01-29 13:35:27.000000000","message":"Really cool would be an abstract class to build the right flows for the right encapsulations. Depending on whether I get spare time I may refactor these into such a class, otherwise we can refactor later.","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":11313,"name":"Louis Fourie","email":"fouriehl70@gmail.com","username":"lfourie"},"change_message_id":"b43dbf493b30a39abd1a8a27f4be5a793d3db9ba","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            buckets \u003d []"},{"line_number":333,"context_line":"            vlan \u003d self._get_vlan_by_port(flowrule[\u0027egress\u0027])"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"            # to avoid heterogeneous next hops, where one could support an"},{"line_number":336,"context_line":"            # SFC Encapsulation protocol but not the other, this \"pre-check\""},{"line_number":337,"context_line":"            # cycle is executed to determine whether traffic should be"},{"line_number":338,"context_line":"            # encapsulated in ACROSS_SUBNET table (as networking-sfc always"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa31d9ce_7ba18493","line":335,"range":{"start_line":335,"start_character":14,"end_line":335,"end_character":46},"updated":"2017-02-15 19:36:03.000000000","message":"what does this mean? - can you clarify","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"3240bd4440b7300cc03dda2dc988b3df24ff639d","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            buckets \u003d []"},{"line_number":333,"context_line":"            vlan \u003d self._get_vlan_by_port(flowrule[\u0027egress\u0027])"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"            # to avoid heterogeneous next hops, where one could support an"},{"line_number":336,"context_line":"            # SFC Encapsulation protocol but not the other, this \"pre-check\""},{"line_number":337,"context_line":"            # cycle is executed to determine whether traffic should be"},{"line_number":338,"context_line":"            # encapsulated in ACROSS_SUBNET table (as networking-sfc always"}],"source_content_type":"text/x-python","patch_set":12,"id":"fa31d9ce_39ac5b35","line":335,"range":{"start_line":335,"start_character":14,"end_line":335,"end_character":46},"in_reply_to":"fa31d9ce_7ba18493","updated":"2017-02-16 10:24:34.000000000","message":"Relates to the last paragraph of Usage in the documentation. I will clarify here in the code since the issue hasn\u0027t been introduced at this point.","commit_id":"9a66500afb712fdcfe5ed54951be4388ec7b4331"}],"networking_sfc/services/sfc/drivers/ovs/driver.py":[{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"7b373320c0ec602eb901d7825a283b52cbe3abc4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 Futurewei. All rights reserved."},{"line_number":2,"context_line":"# Copyright 2017 Intel Corporation. All rights reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":6,"context_line":"#    a copy of the License at"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_37fbe848","line":3,"updated":"2017-01-29 13:46:18.000000000","message":"TODO: Add information regarding the flow rules \"interface\", especially the addition of the sfc_encap parameter and how it differs from correlation.","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"6409aec5c624c1f3171837e3938a50e9bade1a20","unresolved":false,"context_lines":[{"line_number":294,"context_line":"                    ]:"},{"line_number":295,"context_line":"                        self.delete_pathport_assoc(src_node[\u0027id\u0027], pd[\u0027id\u0027])"},{"line_number":296,"context_line":"                        src_node[\u0027portpair_details\u0027].remove(pd[\u0027id\u0027])"},{"line_number":297,"context_line":"                        if len(pd[\u0027path_nodes\u0027]) \u003d\u003d 0:"},{"line_number":298,"context_line":"                            self.delete_port_detail(pd[\u0027id\u0027])"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_181e7463","line":297,"range":{"start_line":297,"start_character":52,"end_line":297,"end_character":53},"updated":"2017-01-26 14:55:16.000000000","message":"I read that as \"if last in path_nodes\" so len\u003d\u003d1 looked correct?","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":294,"context_line":"                    ]:"},{"line_number":295,"context_line":"                        self.delete_pathport_assoc(src_node[\u0027id\u0027], pd[\u0027id\u0027])"},{"line_number":296,"context_line":"                        src_node[\u0027portpair_details\u0027].remove(pd[\u0027id\u0027])"},{"line_number":297,"context_line":"                        if len(pd[\u0027path_nodes\u0027]) \u003d\u003d 0:"},{"line_number":298,"context_line":"                            self.delete_port_detail(pd[\u0027id\u0027])"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_d78624da","line":297,"range":{"start_line":297,"start_character":52,"end_line":297,"end_character":53},"in_reply_to":"3a461143_181e7463","updated":"2017-01-29 13:35:27.000000000","message":"Thanks Bernard, this was a temporary change from the very beginning that I didn\u0027t revert. Will be fixed in the next PS, no tests were affected.","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"6409aec5c624c1f3171837e3938a50e9bade1a20","unresolved":false,"context_lines":[{"line_number":540,"context_line":"        flow_rule \u003d dict(node_info, **port_info)"},{"line_number":541,"context_line":"        flow_rule[\u0027sfc_encap\u0027] \u003d sfc_encap"},{"line_number":542,"context_line":""},{"line_number":543,"context_line":"        # if this port is belongs to a MPLS-aware vm, only"},{"line_number":544,"context_line":"        # notify the flow classifier for 1st SF."},{"line_number":545,"context_line":"        flow_rule[\u0027add_fcs\u0027] \u003d self._filter_flow_classifiers("},{"line_number":546,"context_line":"            flow_rule, add_fc_ids)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_584d5c71","line":543,"range":{"start_line":543,"start_character":23,"end_line":543,"end_character":33},"updated":"2017-01-26 14:55:16.000000000","message":"belongs or is belonging, but you have to choose :)","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"89399d8c6cf5083a5d2cca92c5f84a1f446a0217","unresolved":false,"context_lines":[{"line_number":540,"context_line":"        flow_rule \u003d dict(node_info, **port_info)"},{"line_number":541,"context_line":"        flow_rule[\u0027sfc_encap\u0027] \u003d sfc_encap"},{"line_number":542,"context_line":""},{"line_number":543,"context_line":"        # if this port is belongs to a MPLS-aware vm, only"},{"line_number":544,"context_line":"        # notify the flow classifier for 1st SF."},{"line_number":545,"context_line":"        flow_rule[\u0027add_fcs\u0027] \u003d self._filter_flow_classifiers("},{"line_number":546,"context_line":"            flow_rule, add_fc_ids)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a461143_f7fa4074","line":543,"range":{"start_line":543,"start_character":23,"end_line":543,"end_character":33},"in_reply_to":"3a461143_584d5c71","updated":"2017-01-29 13:35:27.000000000","message":"Something really strange happened here... I\u0027ll fix it.","commit_id":"4e98f045ac3b06d7fc84f7156bd83874cc389f8f"}]}
