Skip to content

Commit

Permalink
Add ZMQ port for orchagent (sonic-net#795)
Browse files Browse the repository at this point in the history
Add ZMQ port for orchagent.

#### Work item tracking
Microsoft ADO (number only): 17753804

#### Why I did it
Orchagent need create ZMQ server for listen incoming connection.

#### How I did it
Add ZMQ address to zmqserver.h

#### How to verify it
Pass all UT and E2E test cases.

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111

#### Description for the changelog
Add ZMQ port for orchagent.

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
-->

#### A picture of a cute animal (not mandatory but encouraged)
  • Loading branch information
liuh-80 authored and Sviatoslav Boichuk committed Sep 7, 2023
1 parent c0e628f commit aa3c593
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/zmqserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#define MQ_POLL_TIMEOUT (1000)
#define MQ_WATERMARK 10000

/***** ZMQ PORT *****/
static const int ORCH_ZMQ_PORT = 8020;

namespace swss {

class ZmqMessageHandler
Expand Down

0 comments on commit aa3c593

Please sign in to comment.