Open toddnni opened 8 years ago
I took a look into the Neutron security rule code and it seems that one cannot define protocol using IP Protocol Numbers (see the code in openstack/networking/v2/extensions/security/rules).
Compare this to Neutron code https://github.com/openstack/neutron/blob/master/neutron/extensions/securitygroup.py#L142 that checks if input is in range 0-255.
Ability to input a number is required if for example one wants to enable IGMP and VRRP protocols for keepalived.
Ah, true. We just need to pass in a CreateOptsBuilder interface like everywhere else in the library and then have CreateOpts implement it.
CreateOptsBuilder
interface
CreateOpts
I took a look into the Neutron security rule code and it seems that one cannot define protocol using IP Protocol Numbers (see the code in openstack/networking/v2/extensions/security/rules).
Compare this to Neutron code https://github.com/openstack/neutron/blob/master/neutron/extensions/securitygroup.py#L142 that checks if input is in range 0-255.
Ability to input a number is required if for example one wants to enable IGMP and VRRP protocols for keepalived.