deny/allow bi-directional

This commit is contained in:
Anish Mukherjee 2022-12-09 20:35:29 +05:30
parent 98e60edb19
commit 79f318e0c5
2 changed files with 6 additions and 0 deletions

View file

@ -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")

View file

@ -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")