Skip to content

Commit

Permalink
Update classes for 18.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Sep 29, 2018
1 parent fae1ad6 commit 0cfcdd6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions Classes/Bind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Management.Automation;

namespace OPNsense.bind.acl.acls {
public class Acl {
#region Parameters
public bool enabled { get; set; }
public string name { get; set; }
public PSObject networks { get; set; }
#endregion Parameters

public Acl () {
enabled = true;
name = null;
networks = null;
}

public Acl (
byte Enabled,
string Name,
PSObject Networks
) {
enabled = (Enabled == 0) ? false : true;
name = Name;
networks = Networks;
}
}
}
6 changes: 3 additions & 3 deletions Data/items.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"MinimumVersion": "18.1",
"MaximumVersion": "18.1.6",
"MinimumVersion": "18.7",
"MaximumVersion": "19.1",
"AcmeClient": {
"Account": {
"objectname": "AcmeClient Account",
Expand Down Expand Up @@ -222,7 +222,7 @@
"Bind": {
"Acl": {
"objectname": "Bind ACL",
"mountpoint": "",
"mountpoint": "\\\\OPNsense\\bind\\acl\\acls\\acl",
"remove": {
"returntype": "OPNsense.Bind.Acl",
"command": {
Expand Down

0 comments on commit 0cfcdd6

Please sign in to comment.