Lines Matching refs:protocol
177 if rule.get('protocol') in ['icmp', 'icmp6']:
178 rule['protocol'] = 'ipv6-icmp'
367 def _protocol_param(self, protocol, pf_rule):
368 if protocol:
369 pf_rule.append('proto %s' % protocol)
371 def _port_param(self, protocol, port_range_min, port_range_max, pf_rule):
374 if protocol in ('tcp', 'udp'):
380 elif protocol in ('icmp', 'ipv6-icmp'):
381 icmp_type = 'icmp-type' if protocol == 'icmp' else 'icmp6-type'
397 protocol = sg_rule.get('protocol')
402 self._port_param(protocol,
406 self._port_param(protocol,
411 self._port_param(protocol,
418 self._port_param(protocol,
433 protocol = sg_rule.get('protocol')
434 self._protocol_param(protocol, pf_rule)