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

Function ipset_chain_name

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

Source from the content-addressed store, hash-verified

1043
1044#ipset chain max len 31 char
1045def ipset_chain_name(vm_name):
1046 if len(vm_name) > 30:
1047 vm_name = vm_name[0:30]
1048 return vm_name
1049
1050
1051#iptables chain max len 29 char and it is appended with other names like -eg,-def

Callers 3

default_network_rulesFunction · 0.85
verify_ipset_for_vmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected