vADC Forum

Reply
Occasional Contributor
Posts: 15
Registered: ‎10-23-2013

Enabling rules by another rules ?

Hi,

 

Is it possible to enable rules by another script?

In my case, there is these rules to be enabled when the certain rule is enabled (like cascade,   one enlabed, effecting others enabled)

 

 

with trafficscript, or external source like vcli, doesn't matter.

 

any ways?

gaa
New Member
Posts: 1
Registered: ‎12-16-2015

Re: Enabling rules by another rules ?

I don't think that you can use any built-in functions to do this.

 

However, it would probably be possible to do a RESTful request to enable/disable rules through the TrafficScipt, ref.: http://community.brocade.com/t5/vADC-Docs/Tech-Tip-Using-the-RESTful-Control-API-with-TrafficScript/ta-p/73985

 

I'm not so sure if this is a preferred solution in an production environment.

Contributor
Posts: 40
Registered: ‎03-26-2013

Re: Enabling rules by another rules ?

Indeed that sounds quite tricky. To avoid using a trafficscript rule, I would rather use zcli and VirtualServer.setRules.

 

If a rule is mandatory but you don't want to do a synchronous call that could block, an option could be to have a rule raise an event, which would trigger an action running an external program doing the REST API call to toggle another rule's attributes.

 

But we're digging deeper the pit of inelegance here, if you provide more background maybe we could think of a better solution?

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

Download FREE NVMe eBook