[2.1.4] View the default-gateway set for a node

Bug #1674807 reported by Darryl Weaver
6
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-0ubuntu1~16.04.1 on Xenial.

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.

Tags: docteam

Related branches

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
Revision history for this message
Mike Pontillo (mpontillo) wrote :

With the branch I just merged into MAAS 2.2, each machine will have a default_gateways structure, such as:

{
  ...
  "default_gateways": {
    "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.

Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.