summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcac6
1 files changed, 0 insertions, 6 deletions
diff --git a/cac b/cac
index c6ab4e4..fa52f92 100755
--- a/cac
+++ b/cac
@@ -204,21 +204,15 @@ __cac_cli__getserver() {(
__cac_cli__generatenetworking() {(
server=$(__cac_cli__getserver "$1")
- hostname=$(echo $server | jq -r .label)
-
address=$(echo $server | jq -r .ip)
gateway=$(echo $server | jq -r .gateway)
nameserver=8.8.8.8
netmask=$(echo $server | jq -r .netmask)
prefix=$(netmask_to_prefix $netmask)
- #printf '# Generated file: %s generatenetworking %s %s\n' "$0" "$1" "$2"
- #printf '# on %s\n' "$(date -Is)"
- #printf '\n'
printf '_:\n'
printf '\n'
printf '{\n'
- printf ' networking.hostName = "%s";\n' $hostname
printf ' networking.interfaces.enp2s1.ip4 = [\n'
printf ' {\n'
printf ' address = "%s";\n' $address