line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::docsisious; |
2
|
1
|
|
|
1
|
|
7
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
173
|
use File::Spec::Functions 'catdir'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
5
|
1
|
|
|
1
|
|
5
|
use File::Basename 'dirname'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
6
|
1
|
|
|
1
|
|
7
|
use constant HOME => catdir dirname(__FILE__), 'docsisious'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
110
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.08'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=encoding utf8 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
App::docsisious - Edit DOCSIS config files on web |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 VERSION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
0.08 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
L is a L web application for editing |
25
|
|
|
|
|
|
|
DOCSIS config files. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Try out L for a demo. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 INSTALLATION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$ curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org App::docsisious |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
You also need L to be able to write "human readable" OIDs. |
34
|
|
|
|
|
|
|
The standard behavior is to decode all OIDs as numeric. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$ sudo apt-get install libsnmp-perl |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
If you are using a custom perl build, you have to get L |
39
|
|
|
|
|
|
|
manually. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# Step 1: |
44
|
|
|
|
|
|
|
$ docsisious --listen http://*:8000 |
45
|
|
|
|
|
|
|
# Step 2: |
46
|
|
|
|
|
|
|
$ open http://localhost:8000 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 Icons |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over 4 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * L |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * L |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * L |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item * L |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * L |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=back |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 Code |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Copyright (C) 2014, Jan Henning Thorsen |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
71
|
|
|
|
|
|
|
the terms of the Artistic License version 2.0. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 AUTHOR |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Jan Henning Thorsen - C |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |