feat(pif): expose IP config modes (#424)

See vatesfr/xo-web#1651
This commit is contained in:
Pierre Donias
2016-10-20 12:44:35 +02:00
committed by Julien Fontanet
parent 675588f780
commit 75167fb65b
2 changed files with 13 additions and 0 deletions

View File

@@ -1,5 +1,15 @@
// TODO: too low level, move into host.
import { IPV4_CONFIG_MODES, IPV6_CONFIG_MODES } from '../xapi'
export function getIpv4ConfigurationModes () {
return IPV4_CONFIG_MODES
}
export function getIpv6ConfigurationModes () {
return IPV6_CONFIG_MODES
}
// ===================================================================
// Delete

View File

@@ -76,6 +76,9 @@ require('lodash/assign')(module.exports, require('./utils'))
export const VDI_FORMAT_VHD = 'vhd'
export const VDI_FORMAT_RAW = 'raw'
export const IPV4_CONFIG_MODES = ['None', 'DHCP', 'Static']
export const IPV6_CONFIG_MODES = ['None', 'DHCP', 'Static', 'Autoconf']
// ===================================================================
@mixin(mapToArray(mixins))