update_local_in_policy6
Update an existing IPv6 local-in policy by changing only specified fields such as action, interfaces, addresses, services, schedule, status, or logging; all other policy settings remain unchanged.
Instructions
Update an existing IPv6 local-in policy.
Only the specified fields will be updated; other fields remain unchanged.
Args: adom: ADOM name package: Policy package name policyid: Local-in policy6 ID to update action: New action - "accept" or "deny" (optional) intf: New incoming interface(s) (optional) srcaddr: New source IPv6 addresses (optional) dstaddr: New destination IPv6 addresses (optional) service: New services (optional) schedule: New schedule (optional) status: New status - "enable" or "disable" (optional) logtraffic: New local-in traffic logging setting (optional) comments: New comments (optional) srcaddr_negate: Match all sources EXCEPT srcaddr (optional) dstaddr_negate: Match all destinations EXCEPT dstaddr (optional) service_negate: Match all services EXCEPT service (optional) virtual_patch: Enable/disable virtual patching on this policy (optional)
Returns: dict: Update result with keys: - status: "success" or "error" - policyid: Updated policy ID - message: Status or error message
Example: >>> result = await update_local_in_policy6( ... adom="root", ... package="default", ... policyid=1, ... status="disable" ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| intf | No | ||
| action | No | ||
| status | No | ||
| dstaddr | No | ||
| package | Yes | ||
| service | No | ||
| srcaddr | No | ||
| comments | No | ||
| policyid | Yes | ||
| schedule | No | ||
| logtraffic | No | ||
| virtual_patch | No | ||
| dstaddr_negate | No | ||
| service_negate | No | ||
| srcaddr_negate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||