Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Removed the cookies from the remote node rules. #274

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

knobunc
Copy link
Contributor

@knobunc knobunc commented Mar 24, 2016

The rest of the ovs sdn rules had removed them in other patches. This catches the other cases we hadn't yet changed.

otx.AddFlow("table=8, cookie=0x%s, priority=100, ip, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", cookie, nodeSubnetCIDR, nodeIP)
otx.AddFlow("table=1, cookie=0x0, priority=100, tun_src=%s, actions=goto_table:5", nodeIP)
otx.AddFlow("table=8, cookie=0x0, priority=100, arp, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", nodeSubnetCIDR, nodeIP)
otx.AddFlow("table=8, cookie=0x0, priority=100, ip, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", nodeSubnetCIDR, nodeIP)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are not setting cookie, we don't have to specify it right?
otx.AddFlow("table=8, priority=100, ...)

@pravisankar
Copy link

LGTM

@dcbw
Copy link
Contributor

dcbw commented Mar 24, 2016

LGTM after ravi's comments.

@knobunc knobunc force-pushed the feature/remove-cookies branch 2 times, most recently from ea6768f to 07aa19e Compare April 6, 2016 17:41
otx.AddFlow("table=8, cookie=0x%s, priority=100, ip, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", cookie, subnet.Subnet, subnet.HostIP)
otx.AddFlow("table=1, priority=100, tun_src=%s, actions=goto_table:5", cookie, subnet.HostIP)
otx.AddFlow("table=8, priority=100, arp, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", cookie, subnet.Subnet, subnet.HostIP)
otx.AddFlow("table=8, priority=100, ip, nw_dst=%s, actions=move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],set_field:%s->tun_dst,output:1", cookie, subnet.Subnet, subnet.HostIP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to remove the cookie from the argument lists too

The rest of the ovs sdn rules had removed them in other patches.  This
catches the other cases we hadn't cleaned up.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants