Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
avf: wrong argument passed to avf_log_err
[vpp.git]
/
test
/
test_syslog.py
diff --git
a/test/test_syslog.py
b/test/test_syslog.py
index
0acf7c2
..
b084a1d
100644
(file)
--- a/
test/test_syslog.py
+++ b/
test/test_syslog.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
import unittest
from framework import VppTestCase, VppTestRunner
import unittest
from framework import VppTestCase, VppTestRunner
@@
-103,8
+103,8
@@
class TestSyslog(VppTestCase):
def test_syslog(self):
""" Syslog Protocol test """
def test_syslog(self):
""" Syslog Protocol test """
- self.vapi.syslog_set_sender(src_address=self.pg0.local_ip4
n
,
- collector_address=self.pg0.remote_ip4
n
)
+ self.vapi.syslog_set_sender(src_address=self.pg0.local_ip4,
+ collector_address=self.pg0.remote_ip4)
config = self.vapi.syslog_get_sender()
self.assertEqual(str(config.collector_address),
self.pg0.remote_ip4)
config = self.vapi.syslog_get_sender()
self.assertEqual(str(config.collector_address),
self.pg0.remote_ip4)
@@
-178,8
+178,8
@@
class TestSyslog(VppTestCase):
sd1,
msg)
sd1,
msg)
- self.vapi.syslog_set_sender(self.pg0.local_ip4
n
,
- self.pg0.remote_ip4
n
,
+ self.vapi.syslog_set_sender(self.pg0.local_ip4,
+ self.pg0.remote_ip4,
collector_port=12345)
config = self.vapi.syslog_get_sender()
self.assertEqual(config.collector_port, 12345)
collector_port=12345)
config = self.vapi.syslog_get_sender()
self.assertEqual(config.collector_port, 12345)