func addDirectionalGroupRule(c *fi.ModelBuilderContext, source, dest *openstacktasks.SecurityGroup, sgr *openstacktasks.SecurityGroupRule) {
	t := &openstacktasks.SecurityGroupRule{
		Direction:      sgr.Direction,
		EtherType:      sgr.EtherType,
		Lifecycle:      sgr.Lifecycle,
		PortRangeMin:   sgr.PortRangeMin,
		PortRangeMax:   sgr.PortRangeMax,
		Protocol:       sgr.Protocol,
		RemoteGroup:    dest,
		RemoteIPPrefix: sgr.RemoteIPPrefix,
		SecGroup:       source,
	}
	c.AddTask(t)
}
// addDirectionalGroupRule - create a rule on the source group to the dest group provided a securityGroupRuleTask
//  Example
//  Create an Ingress rule on source allowing traffic from dest with the options in the SecurityGroupRule
//  Create an Egress rule on source allowing traffic to dest with the options in the SecurityGroupRule
create a rule on the source group to the dest group provided a securityGroupRuleTask
Example
Create an Ingress rule on source allowing traffic from dest with the options in the SecurityGroupRule
Create an Egress rule on source allowing traffic to dest with the options in the SecurityGroupRule
// addDirectionalGroupRule - create a rule on the source group to the dest group provided a securityGroupRuleTask // Example // Create an Ingress rule on source allowing traffic from dest with the options in the SecurityGroupRule // Create an Egress rule on source allowing traffic to dest with the options in the SecurityGroupRule
func addDirectionalGroupRule(c *fi.ModelBuilderContext, source, dest *openstacktasks.SecurityGroup, sgr *openstacktasks.SecurityGroupRule) {
	t := &openstacktasks.SecurityGroupRule{
		Direction:      sgr.Direction,
		EtherType:      sgr.EtherType,
		Lifecycle:      sgr.Lifecycle,
		PortRangeMin:   sgr.PortRangeMin,
		PortRangeMax:   sgr.PortRangeMax,
		Protocol:       sgr.Protocol,
		RemoteGroup:    dest,
		RemoteIPPrefix: sgr.RemoteIPPrefix,
		SecGroup:       source,
	}
	c.AddTask(t)
}
func addDirectionalGroupRule ( c * fi . ModelBuilderContext , source , dest * openstacktasks . SecurityGroup , sgr * openstacktasks . SecurityGroupRule ) { t := & openstacktasks . SecurityGroupRule { Direction : sgr . Direction , EtherType : sgr . EtherType , Lifecycle : sgr . Lifecycle , PortRangeMin : sgr . PortRangeMin , PortRangeMax : sgr . PortRangeMax , Protocol : sgr . Protocol , RemoteGroup : dest , RemoteIPPrefix : sgr . RemoteIPPrefix , SecGroup : source , } c . AddTask ( t ) }
create a rule on the source group to the dest group provided a securityGroupRuleTask
Example
Create an Ingress rule on source allowing traffic from dest with the options in the SecurityGroupRule
Create an Egress rule on source allowing traffic to dest with the options in the SecurityGroupRule
create a rule on the source group to the dest group provided a securityGroupRuleTask Example Create an Ingress rule on source allowing traffic from dest with the options in the SecurityGroupRule Create an Egress rule on source allowing traffic to dest with the options in the SecurityGroupRule