Coverage for nova/network/constants.py: 100%

20 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-04-17 15:08 +0000

1# Copyright 2013 UnitedStack Inc. 

2# All Rights Reserved. 

3# 

4# Licensed under the Apache License, Version 2.0 (the "License"); you may 

5# not use this file except in compliance with the License. You may obtain 

6# a copy of the License at 

7# 

8# http://www.apache.org/licenses/LICENSE-2.0 

9# 

10# Unless required by applicable law or agreed to in writing, software 

11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 

12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 

13# License for the specific language governing permissions and limitations 

14# under the License. 

15 

16# Port fields 

17 

18BINDING_PROFILE = 'binding:profile' 

19BINDING_HOST_ID = 'binding:host_id' 

20RESOURCE_REQUEST = 'resource_request' 

21REQUEST_GROUPS = 'request_groups' 

22NUMA_POLICY = 'numa_affinity_policy' 

23 

24# Binding profile fields 

25 

26MIGRATING_ATTR = 'migrating_to' 

27ALLOCATION = 'allocation' 

28 

29# Core extensions 

30 

31DNS_INTEGRATION = 'dns-integration' 

32MULTI_PROVIDER = 'multi-provider' 

33FIP_PORT_DETAILS = 'fip-port-details' 

34PORT_BINDING = 'binding' 

35PORT_BINDING_EXTENDED = 'binding-extended' 

36SUBSTR_PORT_FILTERING = 'ip-substring-filtering' 

37SEGMENT = 'segment' 

38RESOURCE_REQUEST_GROUPS = 'port-resource-request-groups' 

39SG_SHARED_FILTER = "security-groups-shared-filtering" 

40 

41# Third-party extensions 

42 

43VNIC_INDEX = 'vnic-index' # this is provided by the vmware_nsx project 

44 

45# Search fields 

46 

47NET_EXTERNAL = 'router:external' 

48 

49# Misc 

50 

51DEFAULT_SECGROUP = 'default' 

52L3_NETWORK_TYPES = ['vxlan', 'gre', 'geneve']