MCPcopy Create free account
hub / github.com/apache/cloudstack / ebtables_chain_name

Function ebtables_chain_name

scripts/vm/network/security_group.py:1037–1041  ·  view source on GitHub ↗
(vm_name)

Source from the content-addressed store, hash-verified

1035
1036#ebtables chain max len 31 char
1037def ebtables_chain_name(vm_name):
1038 # 23 because there are appends to the chains
1039 if len(vm_name) > 22:
1040 vm_name = vm_name[0:22]
1041 return vm_name
1042
1043
1044#ipset chain max len 31 char

Callers 3

destroy_ebtables_rulesFunction · 0.85
default_ebtables_rulesFunction · 0.85
ebtables_rules_vmipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected