https://github.com/yvesago/parseacl
A Cisco ACL parser
https://github.com/yvesago/parseacl
acl cisco nodejs parser
Last synced: 10 months ago
JSON representation
A Cisco ACL parser
- Host: GitHub
- URL: https://github.com/yvesago/parseacl
- Owner: yvesago
- License: gpl-2.0
- Created: 2015-04-26T18:18:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-20T07:02:06.000Z (over 9 years ago)
- Last Synced: 2025-04-03T10:40:58.452Z (10 months ago)
- Topics: acl, cisco, nodejs, parser
- Language: JavaScript
- Size: 24.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
parseacl - A Cisco ACL parser
===================
[](https://travis-ci.org/yvesago/parseacl)
## Description
A cisco ACL parser.
Produce a node object from interface and extended acl input.
Currently only for IPv4.
## Install
npm install parseacl
## Usage
var Vlan = require('parseacl');
var config = require('./config'); // optional
fs.readFile(filePath, function(err,data){
data = data.split("\n");
var v = new Vlan(config); // or new Vlan()
v.Parse(data);
console.log(JSON.stringify(v, null, 2));
});
For the use of an optional config module, watch example/config-ex.js
## See Also
[viewacl](https://github.com/yvesago/viewacl) - A Meteor JS web viewer
## Licence
Copyright (C) 2015 Yves Agostini
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Contact the copyright holder for commercial licensing terms
if you wish to incorporate this code into non-GPL software.