Skip to content

Conversation

@matmerr
Copy link
Member

@matmerr matmerr commented Oct 17, 2020

Reason for Change:

Fixed an issue for adding routes to the external interface, in transparent and bridge mode, as well as the snat rules

Issue Fixed:

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #694 (45817d1) into master (0309922) will decrease coverage by 0.38%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #694      +/-   ##
==========================================
- Coverage   39.12%   38.74%   -0.39%     
==========================================
  Files          83       83              
  Lines       10697    10709      +12     
==========================================
- Hits         4185     4149      -36     
- Misses       6010     6056      +46     
- Partials      502      504       +2     


return nil

// old
Copy link
Member Author

Choose a reason for hiding this comment

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

remove commented code

@matmerr matmerr changed the title Add pod subnet routes and snat rules in bridge and transparent refactor: Move CNI bridge/transparent routes to common Oct 19, 2020
DisableIPTableLock bool
)

type IpTableEntry struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

nit: IPTableEntry

}

azureDNSMatch := fmt.Sprintf(" -m addrtype ! --dst-type local -s %s -d %s -p %s --dport %d", ncSubnetPrefix.String(), iptables.AzureDNS, iptables.UDP, iptables.DNSPort)
snatPrimaryIPJump := fmt.Sprintf("%s --to %s", iptables.Snat, info.podIPAddress)
Copy link
Member Author

Choose a reason for hiding this comment

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

info.podIPAddress don't snat with podIPAddress, snat with ncPrimaryIPAddress

@thatmattlong
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@matmerr matmerr merged commit f0907b4 into Azure:master Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants