mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
deny/allow bi-directional
This commit is contained in:
parent
98e60edb19
commit
79f318e0c5
2 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,9 @@ var aclAllowCmd = &cobra.Command{
|
|||
acls.AclID(fromNodeID): map[acls.AclID]byte{
|
||||
acls.AclID(toNodeID): acls.Allowed,
|
||||
},
|
||||
acls.AclID(toNodeID): map[acls.AclID]byte{
|
||||
acls.AclID(fromNodeID): acls.Allowed,
|
||||
},
|
||||
})
|
||||
functions.UpdateACL(args[0], &payload)
|
||||
fmt.Println("Success")
|
||||
|
|
|
@ -32,6 +32,9 @@ var aclDenyCmd = &cobra.Command{
|
|||
acls.AclID(fromNodeID): map[acls.AclID]byte{
|
||||
acls.AclID(toNodeID): acls.NotAllowed,
|
||||
},
|
||||
acls.AclID(toNodeID): map[acls.AclID]byte{
|
||||
acls.AclID(fromNodeID): acls.NotAllowed,
|
||||
},
|
||||
})
|
||||
functions.UpdateACL(args[0], &payload)
|
||||
fmt.Println("Success")
|
||||
|
|
Loading…
Reference in a new issue