Skip to content

Not able to set gateway group as default? #557

Discussion options

You must be logged in to vote

Hmm yeah this is an oversight on my end, I missed this one when support for gateway groups was added. The DefaultGateway model is currently only looking for RoutingGateways when it should be looking for both RoutingGateways and RoutingGatewayGroups:

# Set model fields
$this->defaultgw4 = new ForeignModelField(
model_name: 'RoutingGateway',
model_field: 'name',
model_query: ['ipprotocol' => 'inet'],
allowed_keywords: ['', '-'],
default: '',
allow_empty: true,
help_text: 'The gateway to assigns as the default IPv4 gateway for thi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leandrogbreve
Comment options

Answer selected by leandrogbreve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants