[NEUTRON-73] Protocol field missing from security_group_rules Created: 30/Sep/15  Updated: 03/May/18  Resolved: 16/Oct/15

Status: Resolved
Project: neutron
Component/s: transcriber
Affects Version/s: master
Fix Version/s: None

Type: Bug
Reporter: Rijil Abraham Assignee: Aswin Suryanarayanan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


External issue ID: 4379

 Description   

Protocol field is missing from security_group_rules causing custom Security group flows (say TCP or UDP) not to be added.

Build used : latest beryllium builds

Failed condition:
security_group_rules" : [

{ "id" : "7d41a140-52f8-400e-b5fc-ce27e320f9ff", "tenant_id" : "2d6fe2d12cc0416482dd3baa7ed74215", "direction" : "ingress", "ethertype" : "IPv4", "remote_ip_prefix" : "0.0.0.0/0", "security_group_id" : "fb241f70-d8ec-4388-aed3-93be500521a6" }

,

Passed condition:
security_group_rules" : [

{ "id" : "7d41a140-52f8-400e-b5fc-ce27e320f9ff", "tenant_id" : "2d6fe2d12cc0416482dd3baa7ed74215", "direction" : "ingress", "protocol" : "udp", "port_range_min" : 888, "port_range_max" : 888, "ethertype" : "IPv4", "remote_ip_prefix" : "0.0.0.0/0", "security_group_id" : "fb241f70-d8ec-4388-aed3-93be500521a6" }

,



 Comments   
Comment by Isaku Yamahata [ 30/Sep/15 ]

Can you try this patch?
https://git.opendaylight.org/gerrit/#/c/27675/

Comment by Isaku Yamahata [ 02/Oct/15 ]

I tested the keyword icmpv6 and observed that icmpv6 is allowed.

neutron security-group-create sg-icmpv6-test
neutron security-group-rule-create --ethertype IPv6 --protocol ICMPv6 sg-icmpv6-test

POST /controller/nb/v2/neutron/security-group-rules HTTP/1.1

{
"security_group_rule":

{ "remote_group_id": null, "direction": "ingress", "remote_ip_prefix": null, "protocol": "icmpv6", "ethertype": "IPv6", "tenant_id": "6f25fa70b0e547d8aab2f68ea4c138fd", "port_range_max": null, "port_range_min": null, "id": "d8f5cc79-1ecb-4b53-828f-324d410ac8f6", "security_group_id": "2938e77f-7730-4f37-8e4c-e0f4508c7436" }

}

Generated at Wed Feb 07 20:25:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.