sonic-buildimage/files/image_config/interfaces/interfaces-config.sh

6 lines
171 B
Bash
Executable File

#!/bin/bash
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
service networking restart
ifdown lo && ifup lo