Forum Discussion
Diameter iRules attachment?
I'm creating iRules for a Diameter message routing virtual server.
I can't seem to get the events DIAMETER_INGRESS or DIAMETER_EGRESS to be executed by the irule.
I have the following simple iRule but but I get no log messages in /var/log/ltm when requests are sent.
when DIAMETER_INGRESS {
log local0. "diameter ingress event detected"
if {[DIAMETER::command] == 268} {
log local0. "diameter eap request detected"
}
}
when DIAMETER_EGRESS {
log local0. "diameter egress event detected"
if {[DIAMETER::command] == 268} {
log local0. "diameter eap egress detected"
}
}
}
I've attached this iRule to the transport profile as well as the VS but no log messages.
The message routing configuration is working fine I get a request from upstream which F5 sends downstream and a response is back upstream.
What am I doing wrong?
3 Replies
you have 1 too many curly brace on line 17.
i have irules code for diameter lb that also supports server originated request in link below
LTM Diameter iRules and Profile Configurations with Support for Server Initiated Request
- symtexxd
Nimbostratus
Hi,
yes sorry that is because I copied and pasted from config stanza "tmsh ltm rule".
where do you attach the irule? to the virtual server or the transport profile?
- symtexxd
Nimbostratus
your article made me realize I was using the wrong events I think DIAMETER_INGRESS/DIAMETER_EGRESS events only execute when you're using a standard virtual server with a DIAMETER profile. If you want to use iRules with message routing VS and MRF profiles you have to use the MR_INGRESS/MR_EGRESS events. I'm not 100% if this is the case but it seems so.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com