This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| delete firewall | |
| delete system config-management | |
| delete system domain-search | |
| delete system flow-accounting | |
| delete system flow-analysis | |
| delete system ntp | |
| delete system syslog | |
| delete traffic-policy | |
| delete zone-policy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let DurationContract = | |
| std.contract.from_predicate (fun value => | |
| if std.typeof value != 'String then | |
| false | |
| else | |
| # Simple validation for duration strings like "1m", "1h", etc. In practice, more robust parsing could be added. | |
| std.string.is_match "^[0-9]+[smhd]$" value | |
| ) | |
| in |