Forum Discussion
Alscion_68122
Nimbostratus
Sep 07, 2011Update admin partition
Hi all,
Trying to update my script from v10 to v11 and have trouble with updating admin partition:
In v10, i used the following instructions to select the admin partition I wanted to create some object where the variable $part content the name of my partition:
tmsh::modify cli admin-partitions all-partitions $part
In v11, i try to do it with the following instructions, but I have an error "admin-partitions may only be specified in a config file"
tmsh::modify cli admin-partitions { update-partition $part }
I checked the chapter cli/admin-partitions of the documentation and posts on devcentral but didn't find any solution. Does anybody have an idea?
Thanks!
8 Replies
Could you confirm whether source IPs 104.123.3.1 and 117.23.2.1 should be *allowed* to access path "/abc/update". Or should they be denied?
only IPs 104.123.3.1 and 117.23.2.1 can acces to path "/abc/update". remainng Ip connections from internet towards acess path "/abc/update" should be droped/blocked
Thanks for confirming.
I made a few minor adjustments to fix syntax issues, but this should work:
when HTTP_REQUEST { if { [HTTP::path] contains "/abc/update" and (([IP::addr [IP::client_addr] equals 104.123.3.1]) or ([IP::addr [IP::client_addr] equals 117.23.2.1])) } { } else { reject } }
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