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

add saiserver docker for mlnx sn2700 platform #12

Merged
merged 3 commits into from
Sep 24, 2016

Conversation

lguohan
Copy link
Collaborator

@lguohan lguohan commented Sep 23, 2016

No description provided.


RUN apt-get update

COPY deps /deps
Copy link
Collaborator

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/

Copy link
Collaborator Author

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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
Copy link
Collaborator

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 -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace tab with spaces?

Copy link
Collaborator Author

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
Copy link
Collaborator

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
Copy link
Collaborator

@qiluo-msft qiluo-msft Sep 23, 2016

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved

@lguohan lguohan merged commit 146c881 into sonic-net:master Sep 24, 2016
Staphylo pushed a commit to Staphylo/sonic-buildimage that referenced this pull request Feb 15, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
Staphylo pushed a commit to Staphylo/sonic-buildimage that referenced this pull request Mar 6, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
Staphylo pushed a commit to Staphylo/sonic-buildimage that referenced this pull request Mar 20, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
mykolaf pushed a commit to mykolaf/sonic-buildimage that referenced this pull request Apr 10, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
yurypm pushed a commit to yurypm/sonic-buildimage that referenced this pull request Apr 17, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
yurypm pushed a commit to yurypm/sonic-buildimage that referenced this pull request Jun 4, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
Staphylo pushed a commit to Staphylo/sonic-buildimage that referenced this pull request Jul 13, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
volodymyrsamotiy referenced this pull request in volodymyrsamotiy/sonic-buildimage Aug 9, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
lguohan pushed a commit that referenced this pull request Aug 12, 2018
Use single start script for all platforms and remove symbolic links
Change path to system eeprom

Signed-off-by: marian-pritsak <[email protected]>
johcheun referenced this pull request Sep 27, 2018
ae99de0 Extend RFC 2737 MIB and implement RFC 3433 (#69)

Signed-off-by: Guohan Lu <[email protected]>
yxieca added a commit to yxieca/sonic-buildimage that referenced this pull request Dec 4, 2018
- 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 <[email protected]>
yxieca added a commit that referenced this pull request Dec 4, 2018
- Merge pull request #18 from yxieca/no_buffering
- Revert "Pep 8 compliance, code cleanup (#15)" (#16)
- Pep 8 compliance, code cleanup (#15)
- add detailed comments for get_transceiver_change_event (#12)


Signed-off-by: Ying Xie <[email protected]>
Kalimuthu-Velappan pushed a commit to Kalimuthu-Velappan/sonic-buildimage that referenced this pull request Sep 12, 2019
[sonic_cli]: Fix bash completion for 'show' command
samaity pushed a commit to samaity/sonic-buildimage that referenced this pull request Dec 12, 2019
* [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
samaity pushed a commit to samaity/sonic-buildimage that referenced this pull request Jan 14, 2020
* [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
saiarcot895 pushed a commit that referenced this pull request Nov 10, 2021
Updated the hw-mgmt pointer to include some bugfixes related to power supply voltages.
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jan 24, 2022
SuvarnaMeenakshi pushed a commit to SuvarnaMeenakshi/sonic-buildimage that referenced this pull request Mar 16, 2022
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.
SuvarnaMeenakshi pushed a commit to SuvarnaMeenakshi/sonic-buildimage that referenced this pull request Mar 16, 2022
**- 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.
sg893052 pushed a commit to sg893052/sonic-buildimage that referenced this pull request Apr 25, 2022
taras-keryk referenced this pull request in taras-keryk/sonic-buildimage Apr 28, 2022
…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 <[email protected]>
taras-keryk referenced this pull request in taras-keryk/sonic-buildimage Apr 28, 2022
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 <[email protected]>
lolyu pushed a commit to lolyu/sonic-buildimage that referenced this pull request Sep 28, 2022
Update cisco-8000.ini to use 202205-v0.1
@kellyyeh kellyyeh mentioned this pull request Oct 14, 2022
7 tasks
maksymhedeon pushed a commit to maksymhedeon/sonic-buildimage that referenced this pull request Feb 1, 2023
* 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
maksymhedeon pushed a commit to maksymhedeon/sonic-buildimage that referenced this pull request Feb 1, 2023
* 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
Gokulnath-Raja pushed a commit to Gokulnath-Raja/sonic-buildimage-work that referenced this pull request May 22, 2023
…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
shanshri pushed a commit to shanshri/sonic-buildimage-sonic-net that referenced this pull request Oct 24, 2023
shanshri pushed a commit to shanshri/sonic-buildimage-sonic-net that referenced this pull request Oct 24, 2023
This patch is a backport from linux 4.13
@lipxu lipxu mentioned this pull request Jan 19, 2024
11 tasks
mssonicbld added a commit that referenced this pull request Jan 19, 2024
…tically (#17847)

#### Why I did it
src/sonic-dash-api
```
* 8f481de - (HEAD -> master, origin/master, origin/HEAD) [misc]: Add utils CLI (#12) (24 hours ago) [Ze Gan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants