-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
1,920 additions
and
82 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.git | ||
.venv | ||
*.yml | ||
*.md | ||
*.png | ||
*.ini | ||
docs | ||
examples | ||
tests |
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
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,15 @@ | ||
FROM python:3.6-alpine | ||
|
||
COPY docker/config.txt /etc/napalm/logs | ||
COPY ./ /var/cache/napalm-logs/ | ||
|
||
# Install napalm-logs and pre-requisites | ||
RUN apk add --no-cache \ | ||
libffi \ | ||
libffi-dev \ | ||
python-dev \ | ||
build-base \ | ||
&& pip --no-cache-dir install cffi /var/cache/napalm-logs/ \ | ||
&& rm -rf /var/cache/napalm-logs/ | ||
|
||
CMD napalm-logs --config-file /etc/napalm/logs |
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,2 @@ | ||
napalm-logs | ||
Copyright (c) 2017-2019, Mircea Ulinic |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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
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 @@ | ||
.. _device-configuration-sonic: | ||
|
||
=========== | ||
Azure SONiC | ||
=========== | ||
|
||
.. versionadded:: 0.8.0 | ||
|
||
The following will configure Azure Sonic to send syslog messages, over UDP, to the | ||
IP Address ``10.10.10.1``, port 514 and using the syslog-protocol-23 format. | ||
|
||
The Rsyslogd is configured via the rsyslog.conf file, found in ``/etc``. | ||
|
||
|
||
First, configure Rsyslogd to use the SyslogProtocol23Format template | ||
|
||
.. code-block:: text | ||
$template RSYSLOG_SyslogProtocol23Format,"<%PRI%>1 %TIMESTAMP:::date-rfc3339% %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA%%msg%\n" | ||
Then, set the remote syslog server | ||
|
||
.. code-block:: text | ||
*.* @10.10.10.1:514;RSYSLOG_SyslogProtocol23Format | ||
To correctly send the hostname information, it is also recommended to explicitly | ||
configure the following: | ||
|
||
.. code-block:: text | ||
$PreserveFQDN on |
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
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
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
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,20 @@ | ||
# a comment | ||
messages: | ||
- error: BFD_STATE_CHANGE | ||
tag: BFD-5-STATE_CHANGE | ||
values: | ||
ip: ([\w\d:\.]+) | ||
srcip: ([\w\d:\.]+) | ||
interface: (\w+[\.\-\d\/\w]+) | ||
vrf: (\w+) | ||
type: (\w+) | ||
diag: (\w+) | ||
oldState: (\w+) | ||
newState|bfd_state_convert: (\w+) | ||
line: ': peer (vrf:{vrf}, ip:{ip}, intf:{interface}, srcIp:{srcip}, type:{type}) changed state from {oldState} to {newState} diag {diag}' | ||
model: openconfig-bfd | ||
mapping: | ||
variables: | ||
bfd//interfaces//interface//id: interface | ||
bfd//interfaces//interface//peers//peer//state//session-state: newState | ||
static: {} |
Oops, something went wrong.