Skip to content

Move QoS configuration to config DB#378

Merged
yxieca merged 3 commits intosonic-net:masterfrom
andriymoroz-mlnx:qos_config
Nov 21, 2017
Merged

Move QoS configuration to config DB#378
yxieca merged 3 commits intosonic-net:masterfrom
andriymoroz-mlnx:qos_config

Conversation

@andriymoroz-mlnx
Copy link
Copy Markdown
Contributor

@andriymoroz-mlnx andriymoroz-mlnx commented Nov 10, 2017

What I did
Move QoS configuration to config DB

See also:
sonic-net/sonic-swss-common#158
sonic-net/sonic-buildimage#1162

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build triggered. sha1 is merged.

1 similar comment
@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build triggered. sha1 is merged.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build started sha1 is merged.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build finished. No test results found.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build started sha1 is merged.

@svc-acs
Copy link
Copy Markdown
Collaborator

svc-acs commented Nov 13, 2017

Build finished. No test results found.

Comment thread orchagent/qosorch.cpp Outdated
ref_resolve_status resolve_result;
// sample "QUEUE_TABLE:ETHERNET4:1"
tokens = tokenize(key, delimiter);
tokens = tokenize(key, delimiter2);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The example doesn't match the code change here. Can you also update the example?

Comment thread orchagent/orch.h Outdated
using namespace swss;

const char delimiter = ':';
const char delimiter2 = '|';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

delimiter2 doesn't tell what it is separating, can you give it a more meaningful name? like field_delimiter if it is separating fields, or attr_delimiter if it is separating attributes, for example.

Copy link
Copy Markdown
Contributor

@yxieca yxieca left a comment

Choose a reason for hiding this comment

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

I have a couple non-blocking issue on this review. Otherwise it looks good to me.

Signed-off-by: Andriy Moroz <[email protected]>
@yxieca yxieca merged commit 3a9cf8f into sonic-net:master Nov 21, 2017
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
root@node1# config warm_restart bgp_timer 14

root@node1# show warm_restart config
name    enable    timer_name    timer_duration
------  --------  ------------  ----------------
bgp     false     bgp_timer     14
system  true      NULL          NULL

root@7d3e5fba80c0:/# config warm_restart enable bgp

root@7d3e5fba80c0:/# show warm_restart config
name    enable    timer_name    timer_duration
------  --------  ------------  ----------------
bgp     true      bgp_timer     14
system  false     NULL          NULL

Signed-off-by: Rodny Molina <[email protected]>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
* Address Review comments
sonic-net/sonic-swss-common#376
to remove DB specific API from selectable class
which is generic.

However to access to the Derviced Class Redis Select
API via python we need to downcast the the Selectable Object.

Added Helpfer function to do same.

Ref: http://www.swig.org/Doc3.0/Python.html

Signed-off-by: Abhishek Dosi <[email protected]>

* Align the code properly

Signed-off-by: Abhishek Dosi <[email protected]>

* Address Review Comments. Return the DBConnector Pointer.
Since the DBConnector is unique_ptr return the
reference to the contained object, or a non owning pointer

Signed-off-by: Abhishek Dosi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants