Forum Discussion
Jeffrey_Silver1
Nimbostratus
Feb 26, 2014iRule content show up in one line
When I create an iRule from a powershell script that includes HTTP content, the irule gets created, however, the HTTP is not delimited in the rule when you look at. Its all on one line. Is there an...
Jeffrey_Silver1
Nimbostratus
Feb 28, 2014Patrik, the issue seems to be that even if you put the proper newline characters in the actual text, when you assign that text to the object the newline or carriage returns are not recognized. The irule in the code below gets created but when you go into the web interface and view the irule, all of the content is on a single line.
$data = Get-Content $invar1
$RuleDefinition = New-Object -TypeName iControl.LocalLBRuleRuleDefinition
$RuleDefinition.rule_name = $rule
**$RuleDefinition.rule_definition = $data**
$ic.LocalLBRule.create( (,$RuleDefinition) )Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects