Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syslog Protocol options #267

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions models/enterprise_sonic/logging/deleted_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# -------------
#
sonic# show logging servers
--------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE
--------------------------------------------------------------------------------
10.11.0.2 5 Ethernet24 - event
10.11.1.1 616 Ethernet8 - log
log1.dell.com 6 Ethernet28 - log
----------------------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE PROTOCOL
----------------------------------------------------------------------------------------------
10.11.0.2 5 Ethernet24 - event udp
10.11.1.1 616 Ethernet8 - log tcp
log1.dell.com 6 Ethernet28 - log udp

- name: Delete logging server configuration
sonic_logging:
Expand All @@ -23,7 +23,7 @@ log1.dell.com 6 Ethernet28 - log
# ------------
#
sonic# show logging servers
--------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE
--------------------------------------------------------------------------------
10.11.1.1 616 Ethernet8 - log
----------------------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE PROTOCOL
----------------------------------------------------------------------------------------------
10.11.1.1 616 Ethernet8 - log tcp
22 changes: 12 additions & 10 deletions models/enterprise_sonic/logging/merged_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# -------------
#
sonic# show logging servers
--------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE
--------------------------------------------------------------------------------
10.11.1.1 616 Ethernet8 - log
----------------------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE PROTOCOL
----------------------------------------------------------------------------------------------
10.11.1.1 616 Ethernet8 - log udp

- name: Merge logging server configuration
sonic_logging:
Expand All @@ -17,18 +17,20 @@ HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE
remote_port: 5
source_interface: Ethernet24
message_type: event
protocol: TCP
- host: log1.dell.com
remote_port: 6
source_interface: Ethernet28
protocol: UDP
state: merged

# After state:
# ------------
#
sonic# show logging servers
--------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE
--------------------------------------------------------------------------------
10.11.0.2 5 Ethernet24 - event
10.11.1.1 616 Ethernet8 - log
log1.dell.com 6 Ethernet28 - log
----------------------------------------------------------------------------------------------
HOST PORT SOURCE-INTERFACE VRF MESSGE-TYPE PROTOCOL
----------------------------------------------------------------------------------------------
10.11.0.2 5 Ethernet24 - event tcp
10.11.1.1 616 Ethernet8 - log udp
log1.dell.com 6 Ethernet28 - log udp
8 changes: 8 additions & 0 deletions models/enterprise_sonic/logging/sonic_logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ DOCUMENTATION: |
choices:
- log
- event
protocol:
type: str
description:
- Type of the protocol for sending the messages.
- protocol can not be deleted.
choices:
- TCP
- UDP
vrf:
type: str
description:
Expand Down