File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,13 @@ var args = common.ArgumentList{
7575 Type : "string" ,
7676 DefaultValue : "" ,
7777 },
78+ {
79+ Name : common .OptIpamQueryUrl ,
80+ Shorthand : common .OptIpamQueryUrlAlias ,
81+ Description : "Set the IPAM query URL" ,
82+ Type : "string" ,
83+ DefaultValue : "" ,
84+ },
7885 {
7986 Name : common .OptIpamQueryInterval ,
8087 Shorthand : common .OptIpamQueryIntervalAlias ,
@@ -106,6 +113,7 @@ func main() {
106113 url := common .GetArg (common .OptAPIServerURL ).(string )
107114 logLevel := common .GetArg (common .OptLogLevel ).(int )
108115 logTarget := common .GetArg (common .OptLogTarget ).(int )
116+ ipamQueryUrl , _ := common .GetArg (common .OptIpamQueryUrl ).(string )
109117 ipamQueryInterval , _ := common .GetArg (common .OptIpamQueryInterval ).(int )
110118 vers := common .GetArg (common .OptVersion ).(bool )
111119
@@ -166,6 +174,7 @@ func main() {
166174
167175 ipamPlugin .SetOption (common .OptEnvironment , environment )
168176 ipamPlugin .SetOption (common .OptAPIServerURL , url )
177+ ipamPlugin .SetOption (common .OptIpamQueryUrl , ipamQueryUrl )
169178 ipamPlugin .SetOption (common .OptIpamQueryInterval , ipamQueryInterval )
170179
171180 // Start plugins.
Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ var args = acn.ArgumentList{
7979 Type : "string" ,
8080 DefaultValue : "" ,
8181 },
82+ {
83+ Name : acn .OptIpamQueryUrl ,
84+ Shorthand : acn .OptIpamQueryUrlAlias ,
85+ Description : "Set the IPAM query URL" ,
86+ Type : "string" ,
87+ DefaultValue : "" ,
88+ },
8289 {
8390 Name : acn .OptIpamQueryInterval ,
8491 Shorthand : acn .OptIpamQueryIntervalAlias ,
@@ -119,6 +126,7 @@ func main() {
119126 logLevel := acn .GetArg (acn .OptLogLevel ).(int )
120127 logTarget := acn .GetArg (acn .OptLogTarget ).(int )
121128 logDirectory := acn .GetArg (acn .OptLogLocation ).(string )
129+ ipamQueryUrl , _ := acn .GetArg (acn .OptIpamQueryUrl ).(string )
122130 ipamQueryInterval , _ := acn .GetArg (acn .OptIpamQueryInterval ).(int )
123131 vers := acn .GetArg (acn .OptVersion ).(bool )
124132
@@ -216,6 +224,7 @@ func main() {
216224
217225 ipamPlugin .SetOption (acn .OptEnvironment , environment )
218226 ipamPlugin .SetOption (acn .OptAPIServerURL , url )
227+ ipamPlugin .SetOption (acn .OptIpamQueryUrl , ipamQueryUrl )
219228 ipamPlugin .SetOption (acn .OptIpamQueryInterval , ipamQueryInterval )
220229
221230 if netPlugin != nil {
Original file line number Diff line number Diff line change @@ -46,8 +46,11 @@ Usage: azure-cnm-plugin [OPTIONS]
4646
4747Options:
4848 -e, --environment=azure Set the operating environment {azure,mas}
49- -l, --log-level=info Set the logging level {debug,info}
50- -t, --log-target=logfile Set the logging target {logfile,syslog,stderr}
49+ -u, --api-url Set the API server URL
50+ -l, --log-level=info Set the logging level {info,debug}
51+ -t, --log-target=logfile Set the logging target {syslog,stderr,logfile}
52+ -o, --log-location Set the logging directory
53+ -q, --ipam-query-url Set the IPAM query URL
5154 -i, --ipam-query-interval Set the IPAM plugin query interval
5255 -v, --version Print version information
5356 -h, --help Print usage information
You can’t perform that action at this time.
0 commit comments