feat(aa): continue refractoring the aa structure.
This commit is contained in:
parent
8ef858ad35
commit
c97886d960
22 changed files with 160 additions and 182 deletions
|
|
@ -34,7 +34,7 @@ func (r AddressExpr) Equals(other AddressExpr) bool {
|
|||
}
|
||||
|
||||
type Network struct {
|
||||
Rule
|
||||
RuleBase
|
||||
Qualifier
|
||||
AddressExpr
|
||||
Domain string
|
||||
|
|
@ -42,9 +42,9 @@ type Network struct {
|
|||
Protocol string
|
||||
}
|
||||
|
||||
func newNetworkFromLog(log map[string]string) *Network {
|
||||
func newNetworkFromLog(log map[string]string) Rule {
|
||||
return &Network{
|
||||
Rule: newRuleFromLog(log),
|
||||
RuleBase: newRuleFromLog(log),
|
||||
Qualifier: newQualifierFromLog(log),
|
||||
AddressExpr: newAddressExprFromLog(log),
|
||||
Domain: log["family"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue