-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace cmp in acl_loader with operator.eq (#2328)
cmp is deprecated in python3. Use operator.eq instead Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
- Loading branch information
1 parent
af245ad
commit 839625d
Showing
4 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"ntp-acl": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"ip": { | ||
"config": { | ||
"source-ip-address": "20.0.0.12/32" | ||
} | ||
}, | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "ACCEPT" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"config": { | ||
"name": "ntp-acl" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"acl": { | ||
"acl-sets": { | ||
"acl-set": { | ||
"ntp-acl": { | ||
"acl-entries": { | ||
"acl-entry": { | ||
"1": { | ||
"ip": { | ||
"config": { | ||
"source-ip-address": "20.0.0.12/32" | ||
} | ||
}, | ||
"config": { | ||
"sequence-id": 1 | ||
}, | ||
"actions": { | ||
"config": { | ||
"forwarding-action": "DROP" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"config": { | ||
"name": "ntp-acl" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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