jcummings_26137
Sep 19, 2018Nimbostratus
List AFM rules containing specific addresses?
Is there a way to list only a portion of an AFM rule list that contains a specific address?
I.E. If I have this output:
list security firewall rule-list RULE_LIST
rules {
ACL_RL_1111 {
action accept
ip-protocol tcp
log yes
destination {
addresses {
1.1.1.1 { }
}
port-lists {
PORTS_TCP
}
}
source {
address-lists {
SOURCES_AL
}
}
}
ACL_RL_1112 {
action accept
ip-protocol udp
log yes
destination {
addresses {
1.1.1.1 { }
2.2.2.2 { }
}
port-lists {
PORTS_UDP
}
}
source {
address-lists {
SOURCES_AL
}
}
}
ACL_RL_1113 {
action accept
ip-protocol tcp
log yes
destination {
address-lists {
DESTINATIONS_AL
}
ports {
25 { }
}
}
And only want to see the sections that contain the IP address 1.1.1.1 (in this case, ACL_RL_1111 and 1112) instead of displaying the entire list, is there a way to accomplish that?