npc: Add policyType to selectorSpec
This allows us to distinguish between ingress and egress dst selectors (required when managing entries in default-allow ipsets).
This commit is contained in:
1 parent
29ec43bdc8
commit
d474c1c26d
6 files changed
+84
-49
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ func New(nodeName string, legacy bool, ipt iptables.Interface, ips ipset.Interfa
|
||||
ips: ips,
|
||||
nss: make(map[string]*ns)}
|
||||
|
||||
doNothing := func(*selector) error { return nil }
|
||||
doNothing := func(*selector, policyType) error { return nil }
|
||||
c.nsSelectors = newSelectorSet(ips, c.onNewNsSelector, doNothing, doNothing)
|
||||
|
||||
return c
|
||||
|
||||
Reference in new issue
Block a user