npc: Rename policy{Ingress,Egress} to policyType{Ingress,Egress}
This commit is contained in:
1 parent
dee24aec65
commit
49224ec9f7
6 files changed
+27
-27
No files matched your search
+3
-3
@@ -3,12 +3,12 @@ package npc
|
||||
type policyType byte
|
||||
|
||||
const (
|
||||
ingressPolicy policyType = iota
|
||||
egressPolicy
|
||||
policyTypeIngress policyType = iota
|
||||
policyTypeEgress
|
||||
)
|
||||
|
||||
func policyTypeStr(policyType policyType) string {
|
||||
if policyType == egressPolicy {
|
||||
if policyType == policyTypeEgress {
|
||||
return "egress"
|
||||
}
|
||||
return "ingress"
|
||||
|
||||
Reference in new issue
Block a user