Merge "fix: Add tip for ipv6 subnet"
This commit is contained in:
commit
507a86ecd7
@ -494,6 +494,7 @@
|
|||||||
"Debian": "Debian",
|
"Debian": "Debian",
|
||||||
"Dedicated": "Dedicated",
|
"Dedicated": "Dedicated",
|
||||||
"Default Policy": "Default Policy",
|
"Default Policy": "Default Policy",
|
||||||
|
"Default is slaac, for details, see https://docs.openstack.org/neutron/latest/admin/config-ipv6.html": "Default is slaac, for details, see https://docs.openstack.org/neutron/latest/admin/config-ipv6.html",
|
||||||
"Degraded": "Degraded",
|
"Degraded": "Degraded",
|
||||||
"Delay Interval(s)": "Delay Interval(s)",
|
"Delay Interval(s)": "Delay Interval(s)",
|
||||||
"Delete": "Delete",
|
"Delete": "Delete",
|
||||||
|
@ -494,6 +494,7 @@
|
|||||||
"Debian": "",
|
"Debian": "",
|
||||||
"Dedicated": "专用",
|
"Dedicated": "专用",
|
||||||
"Default Policy": "默认策略",
|
"Default Policy": "默认策略",
|
||||||
|
"Default is slaac, for details, see https://docs.openstack.org/neutron/latest/admin/config-ipv6.html": "默认使用slaac模式,详细配置方式请查看 https://docs.openstack.org/neutron/latest/admin/config-ipv6.html",
|
||||||
"Degraded": "降级",
|
"Degraded": "降级",
|
||||||
"Delay Interval(s)": "检查间隔(秒)",
|
"Delay Interval(s)": "检查间隔(秒)",
|
||||||
"Delete": "删除",
|
"Delete": "删除",
|
||||||
|
@ -21,6 +21,7 @@ import { isEmpty, isFunction } from 'lodash';
|
|||||||
import Notify from 'components/Notify';
|
import Notify from 'components/Notify';
|
||||||
import { checkPolicyRule } from 'resources/policy';
|
import { checkPolicyRule } from 'resources/policy';
|
||||||
import globalNeutronStore from 'stores/neutron/neutron';
|
import globalNeutronStore from 'stores/neutron/neutron';
|
||||||
|
import { subnetIpv6Tip } from 'resources/network';
|
||||||
import networkUtil from './networkUtil';
|
import networkUtil from './networkUtil';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -68,6 +69,8 @@ export class CreateNetwork extends ModalAction {
|
|||||||
disable_gateway: false,
|
disable_gateway: false,
|
||||||
more: false,
|
more: false,
|
||||||
port_security_enabled: true,
|
port_security_enabled: true,
|
||||||
|
ipv6_ra_mode: 'slaac',
|
||||||
|
ipv6_address_mode: 'slaac',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,6 +421,7 @@ export class CreateNetwork extends ModalAction {
|
|||||||
value: 'slaac',
|
value: 'slaac',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
tip: subnetIpv6Tip,
|
||||||
hidden: ip_version !== 'ipv6',
|
hidden: ip_version !== 'ipv6',
|
||||||
dependencies: ['ipv6_address_mode'],
|
dependencies: ['ipv6_address_mode'],
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
@ -454,6 +458,7 @@ export class CreateNetwork extends ModalAction {
|
|||||||
value: 'slaac',
|
value: 'slaac',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
tip: subnetIpv6Tip,
|
||||||
hidden: ip_version !== 'ipv6',
|
hidden: ip_version !== 'ipv6',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
|
@ -20,6 +20,7 @@ import { isEmpty } from 'lodash';
|
|||||||
import { checkPolicyRule } from 'resources/policy';
|
import { checkPolicyRule } from 'resources/policy';
|
||||||
import globalProjectStore from 'stores/keystone/project';
|
import globalProjectStore from 'stores/keystone/project';
|
||||||
import globalRootStore from 'stores/root';
|
import globalRootStore from 'stores/root';
|
||||||
|
import { subnetIpv6Tip } from 'resources/network';
|
||||||
import networkUtil from './networkUtil';
|
import networkUtil from './networkUtil';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -60,6 +61,8 @@ export default class CreateSubnet extends ModalAction {
|
|||||||
project_id: this.currentProjectId,
|
project_id: this.currentProjectId,
|
||||||
disable_gateway: false,
|
disable_gateway: false,
|
||||||
more: false,
|
more: false,
|
||||||
|
ipv6_ra_mode: 'slaac',
|
||||||
|
ipv6_address_mode: 'slaac',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -195,6 +198,7 @@ export default class CreateSubnet extends ModalAction {
|
|||||||
value: 'slaac',
|
value: 'slaac',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
tip: subnetIpv6Tip,
|
||||||
hidden: ip_version !== 'ipv6',
|
hidden: ip_version !== 'ipv6',
|
||||||
dependencies: ['ipv6_address_mode'],
|
dependencies: ['ipv6_address_mode'],
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
@ -231,6 +235,7 @@ export default class CreateSubnet extends ModalAction {
|
|||||||
value: 'slaac',
|
value: 'slaac',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
tip: subnetIpv6Tip,
|
||||||
hidden: ip_version !== 'ipv6',
|
hidden: ip_version !== 'ipv6',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
|
@ -144,3 +144,7 @@ function PopUpSubnet({ subnetIds }) {
|
|||||||
))
|
))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const subnetIpv6Tip = t(
|
||||||
|
'Default is slaac, for details, see https://docs.openstack.org/neutron/latest/admin/config-ipv6.html'
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user