-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add saiserver docker for mlnx sn2700 platform #12
Conversation
|
||
RUN apt-get update | ||
|
||
COPY deps /deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More specific files in deps/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Ethernet29 112,113,114,115 | ||
Ethernet30 116,117,118,119 | ||
Ethernet31 120,121,122,123 | ||
Ethernet32 124,125,126,127 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer not to have newline in the end.
@@ -0,0 +1 @@ | |||
SAI_INIT_CONFIG_FILE=/usr/share/sai_2700.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line at the end?
<root> | ||
<platform_info type="2700"> | ||
|
||
<!-- Device MAC address --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tab with spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is from mlnx, do not want to change it.
|
||
function clean_up { | ||
service rsyslog stop | ||
exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to 'exit'
|
||
start_mlnx() | ||
{ | ||
mkdir -p /dev/sxdevs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move after '-e' test? Or you may create the folder in Dockerfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what syncd does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
Use single start script for all platforms and remove symbolic links Change path to system eeprom Signed-off-by: marian-pritsak <marianp@mellanox.com>
- Merge pull request sonic-net#18 from yxieca/no_buffering - Revert "Pep 8 compliance, code cleanup (sonic-net#15)" (sonic-net#16) - Pep 8 compliance, code cleanup (sonic-net#15) - add detailed comments for get_transceiver_change_event (sonic-net#12) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
[sonic_cli]: Fix bash completion for 'show' command
* [sonic-head.yang]: Minor modification for enumeration of ip-type in ACL yang models. [sonic-vlan.yang]: modify vlan table key from vlanid(int) to vlan_name(string). [yangModelTesting.py] Fix Test Code and JSON input. * [sonic-acl.yang]: Present Enumeration similar to config DB. * [sonic-head.yang]: Minor update in enumeration
* [sonic-head.yang]: Minor modification for enumeration of ip-type in ACL yang models. [sonic-vlan.yang]: modify vlan table key from vlanid(int) to vlan_name(string). [yangModelTesting.py] Fix Test Code and JSON input. * [sonic-acl.yang]: Present Enumeration similar to config DB. * [sonic-head.yang]: Minor update in enumeration
Updated the hw-mgmt pointer to include some bugfixes related to power supply voltages.
May 5 21:35:16.852142 sonic ERR snmp#snmp-subagent [sonic_ax_impl] ERROR: Uncaught exception in sonic_ax_impl.main#012Traceback (most recent call last):sonic-net#12 File "/usr/local/lib/python3.7/dist-packages/sonic_ax_impl/main.py", line 70, in main#012 event_loop.run_until_complete(agent.run_in_event_loop())sonic-net#12 File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete#012 return future.result()sonic-net#12 File "/usr/local/lib/python3.7/dist-packages/ax_interface/agent.py", line 37, in run_in_event_loop#012 background_task = self.mib_table.start_background_tasks(self.oid_updaters_enabled)sonic-net#12 File "/usr/local/lib/python3.7/dist-packages/ax_interface/mib.py", line 276, in start_background_tasks#012 task = event._loop.create_task(fut)sonic-net#12 File "/usr/lib/python3.7/asyncio/base_events.py", line 405, in create_task#012 task = tasks.Task(coro, loop=self)#012TypeError: a coroutine was expected, got <Task pending coro=<MIBUpdater.start() running at /usr/local/lib/python3.7/dist-packages/ax_interface/mib.py:34> cb=[MIBTable._done_background_task_callback() at /usr/local/lib/python3.7/dist-packages/ax_interface/mib.py:263]> We really do not need to wrap the future within a task. This also addresses the issue where the subagent would not exit on SIGTERM.
**- What I did** A 'key not found' exception will be raised in bgp4.py if the state for a given neighbor is not found in STATE_DB. ``` ERR snmp#snmp-subagent [ax_interface] ERROR: MIBUpdater.start() caught an unexpected exception during update_data() #012Traceback (most recent call last): sonic-net#12 File "/usr/local/lib/python3.7/dist-packages/ax_interface/mib.py", line 43, in start sonic-net#12 self.update_data()sonic-net#12 File "/usr/local/lib/python3.7/dist-packages/sonic_ax_impl/mibs/vendor/cisco/bgp4.py", line 42, in update_data sonic-net#12 state = neigh_info['state'] sonic-net#12 File "/usr/lib/python3/dist-packages/swsscommon/swsscommon.py", line 345, in __getitem__ sonic-net#12 return _swsscommon.FieldValueMap___getitem__(self, key) #012IndexError: key not found ``` It is becaues an empty ```dict``` is returned by ```get_all``` when nothing is found for the given key. So check for ```None``` can't detect the error. **- How I did it** This commit addressed the issue by checking the key ```state```. **- How to verify it** Verified on A7260. No exception is observed after the update. **- Description for the changelog** This PR fix exception caused by non existing key.
DHCP relay enhancements for B+
…onic-net#1215) route_check.py will report an ERROR in syslog if route mismatch is found, which is out control of monit config file. This commit add an option (-s) to control whether error will be reported in syslog. **- How to verify it** The update is verified on Arista-7260. 1. Add a static route whose nexthop is not reachable. ``` ip route add 1.1.1.1 via 192.168.1.101 ``` 2. Run ```route_check.py```, and error msg is only printed on stdout. Nothing is writen to syslog 3. Run ```route_check.py -s```. and error msg is writen to both stdout and syslog 4. Wait for 15 minutes, and confirm that monit will report the error ``` Nov 4 09:30:36.917367 str-7260cx3-acs-2 ERR monit[631]: 'routeCheck' status failed (255) -- results: { {#12 "missed_ROUTE_TABLE_routes": [#12 "1.1.1.1/32"#12 ]#12} }#12 Failed. Look at reported mismatches above ``` Signed-off-by: bingwang <bingwang@microsoft.com>
This commit fix the exception thrown by struct.pack when attempting to pack a unicode string. The script ```fast-reboot-dump.py``` will throw an exception in python3 because ```struct.pack``` requires ```bytes``` for ```s```. ``` Traceback: Traceback (most recent call last): #12 File "/usr/local/bin/fast-reboot-dump.py", line 299, in <module> #12 res = main() #12 File "/usr/local/bin/fast-reboot-dump.py", line 292, in main #12 send_garp_nd(neighbor_entries, map_mac_ip_per_vlan) #12 File "/usr/local/bin/fast-reboot-dump.py", line 221, in send_garp_nd #12 src_ip_addrs = {vlan_name:get_iface_ip_addr(vlan_name) for vlan_name,_,_ in neighbor_entries} #12 File "/usr/local/bin/fast-reboot-dump.py", line 221, in <dictcomp> #12 src_ip_addrs = {vlan_name:get_iface_ip_addr(vlan_name) for vlan_name,_,_ in neighbor_entries} #12 File "/usr/local/bin/fast-reboot-dump.py", line 195, in get_iface_ip_addr #12 return get_if(iff, SIOCGIFADDR)[20:24] #12 File "/usr/local/bin/fast-reboot-dump.py", line 185, in get_if #12 ifreq = ioctl(s, cmd, struct.pack("16s16x",iff)) #12 struct.error: argument for 's' must be a bytes object ``` Signed-off-by: bingwang <bingwang@microsoft.com>
Update cisco-8000.ini to use 202205-v0.1
* Extended build system with flags for the FRR submodule INCLUDE_FRR_BGP INCLUDE_FRR_BFD INCLUDE_FRR_PBR INCLUDE_FRR_VRRP INCLUDE_FRR_OSPF * Print FRR options during the build * Update frr.mk
* Extended build system with flags for the FRR submodule INCLUDE_FRR_BGP INCLUDE_FRR_BFD INCLUDE_FRR_PBR INCLUDE_FRR_VRRP INCLUDE_FRR_OSPF * Print FRR options during the build * Update frr.mk
…nic-net#12) YGOT:- To improve the performance of the Unmarshal and EmitJSON methods. Caching the schema information to path instead of finding the schema for the path every time. Disabled the validation of the response while marshaling the ygot object. Added the debug check for the debug logs to get generated/printed only when the debug flag is enabled Fixes in the Unmarshal method for the node leaf-list, and leaf contains union which has enum as one of its type. Added changes in the Unmarshal method to throw an error if the request payload has the state information. Request Binder:- Added the method validateObjectType - to check and throw an error if the given request payload contains state information. Added the changes not to validate the request payload if the model of the payload is sonic yang, since CVL validates the sonic yang model request Package update:- Updated the ygot package to the version v0.7.1 Updated the goyang package to the version v0.0.0-20200309174518-a00bece872fc Updated the gnmi package to the version v0.0.0-20200307010808-e7106f7f5493
This patch is a backport from linux 4.13
No description provided.