mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
IPv6: Add IPv6 for domain router view
This commit is contained in:
parent
8296d41b5b
commit
da75e4ac8a
@ -116,6 +116,9 @@ public class DomainRouterJoinDaoImpl extends GenericDaoBase<DomainRouterJoinVO,
|
||||
nicResponse.setNetworkid(router.getNetworkUuid());
|
||||
nicResponse.setNetworkName(router.getNetworkName());
|
||||
nicResponse.setMacAddress(router.getMacAddress());
|
||||
nicResponse.setIp6Address(router.getIp6Address());
|
||||
nicResponse.setIp6Gateway(router.getIp6Gateway());
|
||||
nicResponse.setIp6Cidr(router.getIp6Cidr());
|
||||
if (router.getBroadcastUri() != null) {
|
||||
nicResponse.setBroadcastUri(router.getBroadcastUri().toString());
|
||||
}
|
||||
@ -171,6 +174,9 @@ public class DomainRouterJoinDaoImpl extends GenericDaoBase<DomainRouterJoinVO,
|
||||
nicResponse.setNetmask(vr.getNetmask());
|
||||
nicResponse.setNetworkid(vr.getNetworkUuid());
|
||||
nicResponse.setMacAddress(vr.getMacAddress());
|
||||
nicResponse.setIp6Address(vr.getIp6Address());
|
||||
nicResponse.setIp6Gateway(vr.getIp6Gateway());
|
||||
nicResponse.setIp6Cidr(vr.getIp6Cidr());
|
||||
if (vr.getBroadcastUri() != null) {
|
||||
nicResponse.setBroadcastUri(vr.getBroadcastUri().toString());
|
||||
}
|
||||
|
||||
@ -157,6 +157,15 @@ public class DomainRouterJoinVO extends BaseViewVO implements ControlledViewEnti
|
||||
@Column(name = "netmask")
|
||||
private String netmask;
|
||||
|
||||
@Column(name = "ip6_address")
|
||||
private String ip6Address;
|
||||
|
||||
@Column(name = "ip6_gateway")
|
||||
private String ip6Gateway;
|
||||
|
||||
@Column(name = "ip6_cidr")
|
||||
private String ip6Cidr;
|
||||
|
||||
@Column(name = "mac_address")
|
||||
private String macAddress;
|
||||
|
||||
@ -920,4 +929,46 @@ public class DomainRouterJoinVO extends BaseViewVO implements ControlledViewEnti
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getIp6Address() {
|
||||
return ip6Address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setIp6Address(String ip6Address) {
|
||||
this.ip6Address = ip6Address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getIp6Gateway() {
|
||||
return ip6Gateway;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setIp6Gateway(String ip6Gateway) {
|
||||
this.ip6Gateway = ip6Gateway;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getIp6Cidr() {
|
||||
return ip6Cidr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setIp6Cidr(String ip6Cidr) {
|
||||
this.ip6Cidr = ip6Cidr;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -727,6 +727,9 @@ CREATE VIEW `cloud`.`domain_router_view` AS
|
||||
nics.uuid nic_uuid,
|
||||
nics.network_id network_id,
|
||||
nics.ip4_address ip_address,
|
||||
nics.ip6_address ip6_address,
|
||||
nics.ip6_gateway ip6_gateway,
|
||||
nics.ip6_cidr ip6_cidr,
|
||||
nics.default_nic is_default_nic,
|
||||
nics.gateway gateway,
|
||||
nics.netmask netmask,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user