@@ -80,7 +80,7 @@ uint32_t create_switch_timeout = 0;
8080
8181void usage ()
8282{
83- cout << " usage: orchagent [-h] [-r record_type] [-d record_location] [-f swss_rec_filename] [-j sairedis_rec_filename] [-b batch_size] [-m MAC] [-i INST_ID] [-s] [-z mode] [-k bulk_size] [-q zmq_server_address] [-c mode] [-t create_switch_timeout] [-v VRF ] [-I heart_beat_interval] [-R] [-M]" << endl;
83+ cout << " usage: orchagent [-h] [-r record_type] [-d record_location] [-f swss_rec_filename] [-j sairedis_rec_filename] [-b batch_size] [-m MAC] [-i INST_ID] [-s] [-z mode] [-k bulk_size] [-q zmq_server_address] [-c mode] [-t create_switch_timeout] [-v ZMQVRF ] [-I heart_beat_interval] [-R] [-M]" << endl;
8484 cout << " -h: display this message" << endl;
8585 cout << " -r record_type: record orchagent logs with type (default 3)" << endl;
8686 cout << " Bit 0: sairedis.rec, Bit 1: swss.rec, Bit 2: responsepublisher.rec. For example:" << endl;
@@ -101,7 +101,7 @@ void usage()
101101 cout << " -q zmq_server_address: ZMQ server address (default disable ZMQ)" << endl;
102102 cout << " -c counter mode (traditional|asic_db), default: asic_db" << endl;
103103 cout << " -t Override create switch timeout, in sec" << endl;
104- cout << " -v vrf: VRF name (default empty)" << endl;
104+ cout << " -v zmqvrf: ZMQVRF name (default empty)" << endl;
105105 cout << " -I heart_beat_interval: Heart beat interval in millisecond (default 10)" << endl;
106106 cout << " -R enable the ring thread feature" << endl;
107107 cout << " -M enable SAI MACSec POST" << endl;
@@ -367,7 +367,7 @@ int main(int argc, char **argv)
367367 string swss_rec_filename = Recorder::SWSS_FNAME;
368368 string sairedis_rec_filename = Recorder::SAIREDIS_FNAME;
369369 string zmq_server_address = " " ;
370- string vrf ;
370+ string zmq_vrf ;
371371 string responsepublisher_rec_filename = Recorder::RESPPUB_FNAME;
372372 int record_type = 3 ; // Only swss and sairedis recordings enabled by default.
373373 long heartBeatInterval = HEART_BEAT_INTERVAL_MSECS_DEFAULT;
@@ -471,7 +471,7 @@ int main(int argc, char **argv)
471471 case ' v' :
472472 if (optarg)
473473 {
474- vrf = optarg;
474+ zmq_vrf = optarg;
475475 }
476476 break ;
477477 case ' I' :
@@ -545,8 +545,8 @@ int main(int argc, char **argv)
545545 }
546546 else
547547 {
548- SWSS_LOG_NOTICE (" The ZMQ channel on the northbound side of orchagent has been initialized: %s, %s" , zmq_server_address.c_str (), vrf .c_str ());
549- zmq_server = create_zmq_server (zmq_server_address);
548+ SWSS_LOG_NOTICE (" The ZMQ channel on the northbound side of orchagent has been initialized: %s, %s" , zmq_server_address.c_str (), zmq_vrf .c_str ());
549+ zmq_server = create_zmq_server (zmq_server_address, zmq_vrf );
550550 }
551551
552552 // Get switch_type
0 commit comments