# Release Notes {#release_notes} * @subpage release_notes_1804 * @subpage release_notes_18012 * @subpage release_notes_18011 * @subpage release_notes_1801 * @subpage release_notes_1710 * @subpage release_notes_1707 * @subpage release_notes_1704 * @subpage release_notes_17011 * @subpage release_notes_1701 * @subpage release_notes_1609 * @subpage release_notes_1606 @page release_notes_1804 Release notes for VPP 18.04 More than 570 commits since the 18.01 release. ## Features ### Infrastructure - DPDK 18.02.1 - ARM aarch64 integrated into CI ### VNET & Plugins - ERSPAN - L3DSR load balancing support - VPC bonding / LACP - IPv4/IPv6 packet reassembly - IPv6 link-local support - Asymmetrical static NAT - 464XLAT for NAT44 - MAP-T CE support - Intel Adaptive Virtual Function native device driver plugin - Marvell device plugin - SRv6 static, dynamic and masquerading proxy plugins - MPLS Uniform mode - IGMP plugin - IPIP tunnel support (IPv4/IPv6 over IPv4/IPv6) - IPv6 Router Discovery mechanism ### VLIB - ARM-optimized library variations for key functions - Better handling of physmem on non-NUMA kernels ### Host stack - TLS support via OpenSSL or mbedtls software engines - Session layer can utilize both shm and memfd (secure) FIFO segments - STCP - VCL logging / tracing ### API framework - New API definition compiler (vppapigen) - Memory (shm) and socket APIs refactored - API handlers refactored to make them transport (shared memory or socket) agnostic - Improved support for bootstrapping of the shm API with memfd segments over the socket API ### Packaging - SELinux for RPM builds - Debuginfo RPMs - ARM aarch64 for Ubuntu ## Known issues For the full list of issues please refer to fd.io [JIRA](https://jira.fd.io). ## Issues fixed For the full list of fixed issues please refer to: - fd.io [JIRA](https://jira.fd.io) - git [commit log](https://git.fd.io/vpp/log/?h=stable/1804) ## API changes Description of results: * _Definition changed_: indicates that the API file was modified between releases. * _Only in image_: indicates the API is new for this release. * _Only in file_: indicates the API has been removed in this release. Message Name | Results ------------------------------------------------------------ | ---------------- accept_session | definition changed accept_session_reply | definition changed acl_add_replace | definition changed acl_add_replace_reply | definition changed acl_del | definition changed acl_del_reply | definition changed acl_details | definition changed acl_dump | definition changed acl_interface_add_del | definition changed acl_interface_add_del_reply | definition changed acl_interface_etype_whitelist_details | only in image acl_interface_etype_whitelist_dump | only in image acl_interface_list_details | definition changed acl_interface_list_dump | definition changed acl_interface_set_acl_list | definition changed acl_interface_set_acl_list_reply | definition changed acl_interface_set_etype_whitelist | definition changed acl_plugin_control_ping | definition changed acl_plugin_control_ping_reply | definition changed acl_plugin_get_version | definition changed acl_plugin_get_version_reply | definition changed add_node_next | definition changed add_node_next_reply | definition changed af_packet_create | definition changed af_packet_create_reply | definition changed af_packet_delete | definition changed af_packet_delete_reply | definition changed af_packet_set_l4_cksum_offload | definition changed af_packet_set_l4_cksum_offload_reply | definition changed api_versions | definition changed api_versions_reply | definition changed app_namespace_add_del | definition changed app_namespace_add_del_reply | definition changed application_attach | definition changed application_attach_reply | definition changed application_detach | definition changed application_detach_reply | definition changed application_tls_cert_add | definition changed application_tls_key_add | definition changed bd_ip_mac_add_del | definition changed bd_ip_mac_add_del_reply | definition changed bfd_auth_del_key | definition changed bfd_auth_del_key_reply | definition changed bfd_auth_keys_details | definition changed bfd_auth_keys_dump | definition changed bfd_auth_set_key | definition changed bfd_auth_set_key_reply | definition changed bfd_udp_add | definition changed bfd_udp_add_reply | definition changed bfd_udp_auth_activate | definition changed bfd_udp_auth_activate_reply | definition changed bfd_udp_auth_deactivate | definition changed bfd_udp_auth_deactivate_reply | definition changed bfd_udp_del | definition changed bfd_udp_del_echo_source | definition changed bfd_udp_del_echo_source_reply | definition changed bfd_udp_del_reply | definition changed bfd_udp_mod | definition changed bfd_udp_mod_reply | definition changed bfd_udp_session_details | definition changed bfd_udp_session_dump | definition changed bfd_udp_session_set_flags | definition changed bfd_udp_session_set_flags_reply | definition changed bfd_udp_set_echo_source | definition changed bfd_udp_set_echo_source_reply | definition changed bier_disp_entry_add_del | definition changed bier_disp_entry_add_del_reply | definition changed bier_disp_entry_details | definition changed bier_disp_entry_dump | definition changed bier_disp_table_add_del | definition changed bier_disp_table_add_del_reply | definition changed bier_disp_table_details | definition changed bier_disp_table_dump | definition changed bier_imp_add | definition changed bier_imp_add_reply | definition changed bier_imp_del | definition changed bier_imp_del_reply | definition changed bier_imp_details | definition changed bier_imp_dump | definition changed bier_route_add_del | definition changed bier_route_add_del_reply | definition changed bier_route_details | definition changed bier_route_dump | definition changed bier_table_add_del | definition changed bier_table_add_del_reply | definition changed bier_table_details | definition changed bier_table_dump | definition changed bind_sock | definition changed bind_sock_reply | definition changed bind_uri | definition changed bind_uri_reply | definition changed bond_create | definition changed bond_delete | definition changed bond_detach_slave | definition changed bond_enslave | definition changed bridge_domain_add_del | definition changed bridge_domain_add_del_reply | definition changed bridge_domain_details | definition changed bridge_domain_dump | definition changed bridge_domain_set_mac_age | definition changed bridge_domain_set_mac_age_reply | definition changed bridge_flags | definition changed bridge_flags_reply | definition changed cdp_enable | definition changed classify_add_del_session | definition changed classify_add_del_session_reply | definition changed classify_add_del_table | definition changed classify_add_del_table_reply | definition changed classify_session_details | definition changed classify_session_dump |
#!/usr/bin/env python
import unittest
from framework import VppTestCase, VppTestRunner
from util import ppp
from scapy.packet import Raw
from scapy.layers.inet import IP, UDP
from syslog_rfc5424_parser import SyslogMessage, ParseError
from syslog_rfc5424_parser.constants import SyslogFacility, SyslogSeverity
from vpp_papi import VppEnum
class TestSyslog(VppTestCase):
""" Syslog Protocol Test Cases """
@property
def SYSLOG_SEVERITY(self):
return VppEnum.vl_api_syslog_severity_t
@classmethod
def setUpClass(cls):
super(TestSyslog, cls).setUpClass()
try:
cls.pg0, = cls.create_pg_interfaces(range(1))
cls.pg0.admin_up()
cls.pg0.config_ip4()
cls.pg0.resolve_arp()
except Exception:
super(TestSyslog, cls).tearDownClass()
raise
@classmethod
def tearDownClass(cls):
super(TestSyslog, cls).tearDownClass()
def syslog_generate(self, facility, severity, appname, msgid, sd=None,
msg=None):
"""
Generate syslog message
:param facility: facility value
:param severity: severity level
:param appname: application name that originate message
:param msgid: message identifier
:param sd: structured data (optional)
:param msg: free-form message (optional)
"""
facility_str = ['kernel', 'user-level', 'mail-system',
'system-daemons', 'security-authorization', 'syslogd',
'line-printer', 'network-news', 'uucp', 'clock-daemon',
'', 'ftp-daemon', 'ntp-subsystem', 'log-audit',
'log-alert', '', 'local0', 'local1', 'local2',
'local3', 'local4', 'local5', 'local6', 'local7']
severity_str = ['emergency', 'alert', 'critical', 'error', 'warning',
'notice', 'informational', 'debug']
cli_str = "test syslog %s %s %s %s" % (facility_str[facility],
severity_str[severity],
appname,
msgid)
if sd is not None:
for sd_id, sd_params in sd.items():
cli_str += " sd-id %s" % (sd_id)
for name, value in sd_params.items():
cli_str += " sd-param %s %s" % (name, value)
if msg is not None:
cli_str += " %s" % (msg)
self.vapi.cli(cli_str)
def syslog_verify(self, data, facility, severity, appname, msgid, sd=None,
msg=None):
"""
Verify syslog message
:param data: syslog message
:param facility: facility value
:param severity: severity level
:param appname: application name that originate message
:param msgid: message identifier
:param sd: structured data (optional)
:param msg: free-form message (optional)
"""
message = data.decode('utf-8')
if sd is None:
sd = {}
try:
message = SyslogMessage.parse(message)
except ParseError as e:
self.logger.error(e)
raise
else:
self.assertEqual(message.facility, facility)
self.assertEqual(message.severity, severity)
self.assertEqual(message.appname, appname)
self.assertEqual(message.msgid, msgid)
self.assertEqual(message.msg, msg)
self.assertEqual(message.sd, sd)
self.assertEqual(message.version, 1)
self.assertEqual(message.hostname, self.pg0.local_ip4)
def test_syslog(self):
""" Syslog Protocol test """
self.vapi.syslog_set_sender(src_address=self.pg0.local_ip4n,
collector_address=self.pg0.remote_ip4n)
config = self.vapi.syslog_get_sender()
self.assertEqual(str(config.collector_address),
self.pg0.remote_ip4)
self.assertEqual(config.collector_port, 514)
self.assertEqual(str(config.src_address), self.pg0.local_ip4)
self.assertEqual(config.vrf_id, 0)
self.assertEqual(config.max_msg_size, 480)
appname = 'test'
msgid = 'testMsg'
msg = 'this is message'
sd1 = {'exampleSDID@32473': {'iut': '3',
'eventSource': 'App',
'eventID': '1011'}}
sd2 = {'exampleSDID@32473': {'iut': '3',
'eventSource': 'App',
'eventID': '1011'},
'examplePriority@32473': {'class': 'high'}}
self.pg_enable_capture(self.pg_interfaces)
self.syslog_generate(SyslogFacility.local7,
SyslogSeverity.info,
appname,
msgid,
None,
msg)
capture = self.pg0.get_capture(1)
try:
self.assertEqual(capture[0][IP].src, self.pg0.local_ip4)
self.assertEqual(capture[0][IP].dst, self.pg0.remote_ip4)
self.assertEqual(capture[0][UDP].dport, 514)
self.assert_packet_checksums_valid(capture[0], False)
except:
self.logger.error(ppp("invalid packet:", capture[0]))
raise
self.syslog_verify(capture[0][Raw].load,
SyslogFacility.local7,
SyslogSeverity.info,
appname,
msgid,
None,
msg)
self.pg_enable_capture(self.pg_interfaces)
self.vapi.syslog_set_filter(
self.SYSLOG_SEVERITY.SYSLOG_API_SEVERITY_WARN)
filter = self.vapi.syslog_get_filter()
self.assertEqual(filter.severity,
self.SYSLOG_SEVERITY.SYSLOG_API_SEVERITY_WARN)
self.syslog_generate(SyslogFacility.local7,
SyslogSeverity.info,
appname,
msgid,
None,
msg)
self.pg0.assert_nothing_captured()
self.pg_enable_capture(self.pg_interfaces)
self.syslog_generate(SyslogFacility.local6,
SyslogSeverity.warning,
appname,
msgid,
sd1,
msg)
capture = self.pg0.get_capture(1)
self.syslog_verify(capture[0][Raw].load,
SyslogFacility.local6,
SyslogSeverity.warning,
appname,
msgid,
sd1,
msg)
self.vapi.syslog_set_sender(self.pg0.local_ip4n,
self.pg0.remote_ip4n,
collector_port=12345)
config = self.vapi.syslog_get_sender()
self.assertEqual(config.collector_port, 12345)
self.pg_enable_capture(self.pg_interfaces)
self.syslog_generate(SyslogFacility.local5,
SyslogSeverity.err,
appname,
msgid,
sd2,
None)
capture = self.pg0.get_capture(1)
try:
self.assertEqual(capture[0][UDP].dport, 12345)
except:
self.logger.error(ppp("invalid packet:", capture[0]))
raise
self.syslog_verify(capture[0][Raw].load,
SyslogFacility.local5,
SyslogSeverity.err,
appname,
msgid,
sd2,
None)
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)