Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

not getting any output from el7 compiled 0.7.1 binary #15

Open
jalbstmeijer opened this issue Jan 15, 2021 · 1 comment
Open

not getting any output from el7 compiled 0.7.1 binary #15

jalbstmeijer opened this issue Jan 15, 2021 · 1 comment

Comments

@jalbstmeijer
Copy link

Hi,

I might me missing something, but I do not seem to get any output from; (tried different options, non even resulting in an error)

cat test-data/static/netplan.yaml | cmd/netwrangler

Gr, J

@sygibson
Copy link
Contributor

sygibson commented Jan 15, 2021

@jalbstmeijer - presumably you tested the compiled binary to make sure it was working with something like:

cmd/netwrangler --help

And you were able to get some help output?

NetWrangler only supports systemd-networkd config script generation. In addition, the static/netplan.yaml references an interface that may not be on your system (enp3s0). You may need to adjust YAML values for your system. It is also intended to be a one-shot network configuration builder. You still need to run appropriate commands to bring interfaces up/down.

If you are using the Digital Rebar Platform (DRP), the NetWrangler code/capability has been incorporated in to the drpcli command line - and is accessed through the following options:

drpcli net ...

It "fronends" the usage of NetWrangler.

What are you attempting to achieve with NetWrangler? Within the scope of usage with Digital Rebar, or as a separate and standalone tool?

In general - you need to provide an operation to perform (eg -op compile). Using your test - with an invalid NIC that doesn't exist on my system, I get:

root@kvm-0:~/netwrangler# cat test-data/static/netplan.yaml | cmd/netwrangler -op compile
2021/01/15 17:10:17 Error reading 'netplan': netplan:
Ethernet interface enp3s0 does not resolve to any interfaces

Modifying the YAML to reference a physical NIC on my system, using the similar syntax, I get:

root@kvm-0:~/netwrangler# cat np.yaml | cmd/netwrangler -op compile
network:
  ethernets:
    enp1s0f1:
      accept-ra: true
      addresses:
      - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
        addresses:
        - 10.10.10.1
        - 1.1.1.1
        search:
        - mydomain
        - otherdomain
  renderer: networkd
  version: 2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants