[2.1.4] View the default-gateway set for a node
Bug #1674807 reported by
Darryl Weaver
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Mike Pontillo | ||
2.1 |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
MAAS Version: 2.1.4+bzr5591-
You can set the default-gateway of a node to an interface and a link-id on that interface.
There is no way to view the setting and verify which interface (or link-id) is set through the API.
The only way to be sure of a setting of the interface for the default-gateway would be to set it again:
maas PROFILE interface set-default-gateway SYSTEM_ID INTERFACE_ID [link-id=LINK_ID]
Could not find any output that changes from reading the node details or interface details on querying the API for details.
And of course, nothing is shown in the MAAS UI interface either.
Related branches
lp://staging/~mpontillo/maas/view-current-gateway--bug-1674807
- Blake Rouse (community): Approve
-
Diff: 173 lines (+120/-1)3 files modifiedsrc/maasserver/api/machines.py (+18/-0)
src/maasserver/api/tests/test_enlistment.py (+2/-0)
src/maasserver/api/tests/test_machine.py (+100/-1)
lp://staging/~mpontillo/maas/view-current-gateway--bug-1674807--2.1
- Mike Pontillo (community): Approve
-
Diff: 188 lines (+123/-2)4 files modifieddocs/changelog.rst (+3/-1)
src/maasserver/api/machines.py (+18/-0)
src/maasserver/api/tests/test_enlistment.py (+2/-0)
src/maasserver/api/tests/test_machine.py (+100/-1)
Changed in maas: | |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → 2.2.0 |
summary: |
- View the default-gateway set for a node + [2.4] View the default-gateway set for a node |
summary: |
- [2.4] View the default-gateway set for a node + [2.1.4] View the default-gateway set for a node |
Changed in maas: | |
milestone: | 2.2.0 → 2.2.0rc1 |
tags: | added: docteam |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
With the branch I just merged into MAAS 2.2, each machine will have a default_gateways structure, such as:
{ gateways" : {
...
"default_
"ipv4": {
"link_id": 1966,
"gateway_ip": "192.168.0.1"
},
"ipv6": {
"link_id": 1987,
"gateway_ip": "2001::1"
}
},
...
}
The gateway_ip field will contain the effective gateway, no matter if a specific gateway link was set or not. The link_id will contain the subnet link ID, if it has been set for the machine.
I'm looking at merging this to MAAS 2.1 for release in a potential MAAS 2.1.6.