fix(bridge): make direction defaults to egress if not provided
This commit is contained in:
parent
d781dc73a5
commit
1cd226c18b
|
@ -87,6 +87,7 @@ basic_config() ->
|
||||||
, {direction,
|
, {direction,
|
||||||
mk(egress,
|
mk(egress,
|
||||||
#{ desc => "The direction of this bridge, MUST be egress"
|
#{ desc => "The direction of this bridge, MUST be egress"
|
||||||
|
, default => egress
|
||||||
})}
|
})}
|
||||||
]
|
]
|
||||||
++ proplists:delete(base_url, emqx_connector_http:fields(config)).
|
++ proplists:delete(base_url, emqx_connector_http:fields(config)).
|
||||||
|
|
|
@ -71,6 +71,7 @@ metrics_status_fields() ->
|
||||||
direction_field(Dir, Desc) ->
|
direction_field(Dir, Desc) ->
|
||||||
{direction, mk(Dir,
|
{direction, mk(Dir,
|
||||||
#{ nullable => false
|
#{ nullable => false
|
||||||
|
, default => egress
|
||||||
, desc => "The direction of the bridge. Can be one of 'ingress' or 'egress'.<br>"
|
, desc => "The direction of the bridge. Can be one of 'ingress' or 'egress'.<br>"
|
||||||
++ Desc
|
++ Desc
|
||||||
})}.
|
})}.
|
||||||
|
|
Loading…
Reference in New Issue